Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

How to add output with initial value for script node

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
adhamdwikat

How to add output with initial value for script node

Post by adhamdwikat » 31 Mar 2014, 17:41

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

User avatar
Daniel Willer
Posts: 309
Joined: 06 Jan 2012, 18:12

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

Post by Daniel Willer » 01 Apr 2014, 08:18

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

adhamdwikat

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

Post by adhamdwikat » 01 Apr 2014, 18:43

thanks,that works

Post Reply