Search - User list
Full Version: Custom Attributes and Vex
Root » Technical Discussion » Custom Attributes and Vex
fixxorion
Hi all,

I've created a custom attribute named “WGHT” inside of POPs…it's all good, but now I want to access AND change that variable within a Vex POP…how would I do this? I've tried a lot of different things, but it just won't work…what am I doing wrong here? Any help would be GREATLY appreciated…learning Houdini has definitely been a challege.

Thanks,

fixxorion
Nordin
In your parameter definitions in standard, non-vops vex, create the variable name you want to access and edit, but define it as an export type.

export float WGHT = 0;

You can then access the attribute within your vex pop as normal, and write to it as well.

You can do this in Vops too, the parameter vop has an export ability, as well I believe there's an import attribute vop, but I haven't used it much.

May the force be with you.
fixxorion
“You are the ONE”

Thank you thank you thank you!

You saved my life!

Later,

fixxorion
Nordin
LOL!

No problem, glad to help.

There is no spoon..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB