Page 1 of 1

VBScript / Where to find full VBscript manual ?

Posted: 21 Feb 2012, 21:47
by florian
Hi,

i'm looking for a VB script manual for Ventuz.
Where could we get it ?

I see in samples "beatNow = Ventuz.Kernel.Animation.PerformanceTimerHard.Now"
or I want to set the value of a string output, but seems to be undocumented.

Thanks,

Re: VBScript / Where to find full VBscript manual ?

Posted: 22 Feb 2012, 11:57
by Daniel Willer
MSDN is your friend

Re: VBScript / Where to find full VBscript manual ?

Posted: 22 Feb 2012, 19:01
by florian
Great !
And what about Ventuz special functions like Ventuz.Kernel.Animation.PerformanceTimerHard.Now ?

Re: VBScript / Where to find full VBscript manual ?

Posted: 04 Oct 2012, 21:30
by iotek
Hi

Same question from me....MSDN is obviously the ultimate reference tool for scripting, but i'm struggling to transfer VB scripting skills over to Ventuz.
I can't find any reference to specific Ventuz scripting code....does such a reference exist?

cheers
chris

Re: VBScript / Where to find full VBscript manual ?

Posted: 05 Oct 2012, 08:03
by Daniel Willer
Hey Guys

There is no VB ventuz spezific reference. All you need to know is written down in the UserManual (Press F1 on the Script node) even if most of the code examples are written in C# it should not be that hard to transfer.
The most common mistake is that people forget to set the changed flag if a value changes in that case the outputs and the connected nodes will not validate and just nothing happens even if the values are changing on the node itself.
I dont' know if that's your problem, if not you need to post your props and we will have a look at.

Cherio!

Re: VBScript / Where to find full VBscript manual ?

Posted: 08 Oct 2012, 10:34
by iotek
florian wrote:Great !
And what about Ventuz special functions like Ventuz.Kernel.Animation.PerformanceTimerHard.Now ?
florian wrote:Hi,

i'm looking for a VB script manual for Ventuz.
Where could we get it ?

I see in samples "beatNow = Ventuz.Kernel.Animation.PerformanceTimerHard.Now"
or I want to set the value of a string output, but seems to be undocumented.

Thanks,
Its not about a specific script i'm having problems with exactly.

For example the 2 posts from florian; both of these are listed in the examples (F1) but how many more are there like this that are not listed?
Example from myself; i'm trying to simply pass values to inputs and outputs that i have created....but how do I address these inputs and outputs in code?? there is no simple reference to say 'like this'

Sorry if i'm missing something basic by a mile...but I am just struggling with this and I feel a simple reference list in the manual would be a great help to all :)
Am I the only person who is mystified by script nodes....:)) :-S

many thanks
chris

Re: VBScript / Where to find full VBscript manual ?

Posted: 08 Oct 2012, 13:00
by Daniel Willer
If you have to float values as input and output where Flaot1 is your input and Flaot2 is the output a simple example looks like that.

Code: Select all

Float2 = Float1
changed = true
Just copy the code to the Validate() method