Gerardo Castellanos

Gerardo Castellanos

About Me

専門知識
Generalist
業界:
Film/TV

Connect

LOCATION
Spain

Houdini Skills

Availability

Not Specified

Recent Forum Posts

VEX: create attribute from groups 2023年8月8日15:13

Thanks!

VEX: create attribute from groups 2023年8月8日13:31

Hello everybody

I want to create as many attributes (float) as groups I have, and that have the same name of the group, procedurally.

something like this:

string groups[] = detailintrinsic(0, 'primitivegroups');
foreach (string g; groups) {
if (inprimgroup(0,g,@primnum)==1) {
f@`g` = 1.0;
}
}

but it does not work.

Thanks in advance

auto autosave 2023年6月16日4:57

the right code is
hou.appendSessionModuleSource('hou.hscript("autosave on")')