Tip: Iterate through arrays...

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Post Reply
User avatar
rray
Moderator
Posts: 1775
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Tip: Iterate through arrays...

Post by rray » 28 Dec 2012, 15:28

(..or rather, how to avoid iterating through arrays in a few situations...)

Wasn't too obvious to me, in other words completely missed that one, but maybe someone else has too:

The "If condition" branch allows an array in it.. in which case the true and false branches are evaluated depending on the condition result for each array item. It's not possible to do things like "accumulation" of array items however because theoretically, all the branches could be evaluated in the same moment. ... see the "iterate on array" for things like that.

This tree sets all array items < 12 to the minimum of the array.

Image
softimage resources section updated Jan 5th 2024

User avatar
csaez
Posts: 253
Joined: 09 Jul 2012, 15:31
Skype: csaezmargotta
Location: Sydney, Australia
Contact:

Re: Tip: Iterate through arrays...

Post by csaez » 29 Dec 2012, 13:58

Nice find!

Post Reply

Who is online

Users browsing this forum: brandwatch [Bot] and 27 guests