Page 1 of 1

How to add output with initial value for script node

Posted: 31 Mar 2014, 17:41
by adhamdwikat
How to add output with initial value for script node or expression node

i used the custom model window to add output but i don't find any way to initialize the output value
for Integer its always 0 , some times i need to give it another initial values

Re: How to add output with initial value for script node

Posted: 01 Apr 2014, 08:18
by Daniel Willer
If you want to set an initial value in an expression you need to write an expresssion similar to that:

Code: Select all

BoolInitialValue==true? InitialValue: A*B
Inside a Script node I am used to creat a Reset method with a SceneEvent node bound to it to set all my inital values.

Regards
Daniel

Re: How to add output with initial value for script node

Posted: 01 Apr 2014, 18:43
by adhamdwikat
thanks,that works