How to foreach in SOP, mixing with VEX properly?

   1403   2   0
User Avatar
Member
44 posts
Joined: 4月 2017
オフライン
Hi! I want to run foreach in SOP 5 times, adding some arguments from the arrays defined in VEX. Right now I am trying to
come up with crazy idea like creating 5 empty points, iterating on then, while feeding data I need from the other input point attributes;

Is there more "clean" way to do it, without creating intermediate points for the foreach_begin to loop over?

Attachments:
foreachlooper.png (95.3 KB)

User Avatar
Member
5090 posts
Joined: 2月 2012
オフライン
Hi,

You can store both arrays as detail attributes and then work on those inside the For Each SOP network. No need to create new points, unless you want to work on each element in parallel.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
44 posts
Joined: 4月 2017
オフライン
"You can store both arrays as detail attributes"
Huuh, wonder why I could not make this work... Thanks! Will try again and see, I suspected I was doing that on point level
  • Quick Links