import attribute vop with multiple component attributes

   2704   4   0
User Avatar
Member
17 posts
Joined: 7月 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
4697 posts
Joined: 2月 2012
Online
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: 7月 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
4697 posts
Joined: 2月 2012
Online
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: 7月 2012
Offline
I see. :evil:

Thanks!
  • Quick Links