Custom Attributes and Vex

   4676   3   0
User Avatar
Member
11 posts
Joined: July 2005
Offline
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
User Avatar
Member
19 posts
Joined: July 2005
Offline
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.
Nordin
User Avatar
Member
11 posts
Joined: July 2005
Offline
“You are the ONE”

Thank you thank you thank you!

You saved my life!

Later,

fixxorion
User Avatar
Member
19 posts
Joined: July 2005
Offline
LOL!

No problem, glad to help.

There is no spoon..
Nordin
  • Quick Links