 |
Re: Initial value of not connected inputs in Script
Started by kobbi at 03-09-2010 16:24. Topic has 2 replies.
|
|
03-09-2010, 16:24
|
kobbi
Joined on 06-12-2007
Posts 5
|
Initial value of not connected inputs in Script
|
|
|
|
|
Hi Ventuz, Is there any possibility to set initial value of inputs in scripts?
I've tried this, but it throws error ![Crying [:'(]](/emoticons/emotion-9.gif) public Script() { input1=100; }
It would realy helped me a lot.
Thanks Kobbi
|
|
|
|
|
Report
|
|
|
|
03-09-2010, 20:25
|
Ralf Stanke

Joined on 05-15-2005
Hamburg, Germany
Posts 569
|
Re: Initial value of not connected inputs in Script
|
|
|
|
|
Hi Kobbi
inputs properties are declared as "read-only" for the script. Sorry, there's no way to pre-set the values.
Ralf
|
|
|
|
|
Report
|
|
|
|
03-10-2010, 23:00
|
corylulu

Joined on 12-07-2009
Carlsbad, California, USA
Posts 83
|
Re: Initial value of not connected inputs in Script
|
|
|
|
|
Well you can just make another C# script that feeds those input values though its own export values.
Two scripts running side by side should do it fine. I have a few scripts like that. I just have the inputs of one script coming out of the exports of another script.
|
|
|
|
|
Report
|
|
|
|
|
 |