import attribute vop with multiple component attributes

   2737   4   0
User Avatar
Member
17 posts
Joined: July 2012
Offline
Hello,

How do I get at specific components of an attribute via the import attribute vop?

For example, if I have a multi component integer attribute, say with 4 components, how do I access the second, third and fourth components? I don't see anyway of grabbing anything but the first component on the import attribute vop.

I tried specifying it as a data type that would expect multiple components, but this didn't work either..

Thanks!
User Avatar
Member
4730 posts
Joined: Feb. 2012
Offline
Use Get {x} Component VOPs or {x} to Float VOPs, where {x} can be Vector/Matrix/…
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
17 posts
Joined: July 2012
Offline
What if you have an attribute which does not fit one of these data types though?

For example a 6 component integer attribute, and I want to grab the fifth component via the import attribute vop?
User Avatar
Member
4730 posts
Joined: Feb. 2012
Offline
You can't … in VOPs.

You can only have arrays in VEX currently.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
17 posts
Joined: July 2012
Offline
I see. :evil:

Thanks!
  • Quick Links