how to execute multiple actions on test ?

Discussions about SOFTIMAGEs© Interactive Creative Environment©
didier13
Posts: 13
Joined: 01 May 2011, 10:13

how to execute multiple actions on test ?

Post by didier13 » 28 Jun 2011, 11:30

Hi all,

i have some trouble to use the IF Node. I make a test on a particle cloud and when the test result become true, i want to do several actions.
but there's only one entry for the 'If true'. With the set data node, it's not possible because the output become a execute type (polymorphism) and i must get a vector to perform other stuff.

How to do this kind of stuff?

thx

Chris_TC
Posts: 411
Joined: 22 Mar 2010, 16:43

Re: how to execute multiple actions on test ?

Post by Chris_TC » 28 Jun 2011, 12:53

You'd generally use execute nodes in the True and False ports. Then plug all subtrees into the execute nodes.
If you need an additional vector, you can either use a separate IF statement or store the vector in a custom attribute and read that.

didier13
Posts: 13
Joined: 01 May 2011, 10:13

Re: how to execute multiple actions on test ?

Post by didier13 » 28 Jun 2011, 13:40

ok, i understand now. thank you very much.