Ventuz Technology Group Forum  

Ventuz Forums » Ventuz » How to... » Re: Initial value of not connected inputs in Script

Re: Initial value of not connected inputs in Script
Started by kobbi at 03-09-2010 16:24. Topic has 2 replies.

Print Search « Previous Thread Next Thread »
  03-09-2010, 16:24
kobbi is not online. Last active: 09.03.2010 12:10:32 kobbi

Top 150 Posts
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 [:'(]
public Script()
    {
          input1=100;
    }

It would realy helped me a lot.

Thanks Kobbi


   Report 
  03-09-2010, 20:25
Ralf Stanke is not online. Last active: 08.09.2010 15:05:41 Ralf Stanke



Top 10 Posts
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 is not online. Last active: 02.08.2010 20:20:23 corylulu



Top 25 Posts
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