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!

why changing ControlLoopBegin dispatches Loaded Event

All other topics about Ventuz here.

Moderator: Support

Post Reply
adhamdwikat

why changing ControlLoopBegin dispatches Loaded Event

Post by adhamdwikat » 06 Apr 2014, 13:06

i have bounded the inputs ControlLoopBegin and ControlLoopEnd of movieclip to a Single output of script node for each one .
the problem is when i changed these values form the script they make the Loaded Event of the movie clip dispatched ! .
so, why changing ControlLoopBegin and ControlLoopEnd dispatches Loaded Event ?

adhamdwikat

Re: why changing ControlLoopBegin dispatches Loaded Event

Post by adhamdwikat » 06 Apr 2014, 14:01

i found this only happens if i was previously bound the movie clip File to an output of script, but again why this happens ?
as i know if File input does not changed it should not reload the movie ! .

adhamdwikat

Re: why changing ControlLoopBegin dispatches Loaded Event

Post by adhamdwikat » 06 Apr 2014, 15:11

OK , i have found a solution .
the File input should not be bounded to a Script node output directly , i used Text Buffer node by binding it between Movie Clip File and Script node output , that's did the job and solve the issue.
but i am still don't know why i should use Text Buffer node !.

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: why changing ControlLoopBegin dispatches Loaded Event

Post by Karol » 09 Apr 2014, 14:42

Hi!

Is it possible that the Generate() method of your Script always returns true?
This should only happen if any of the Scripts output properties have changed!
If you have e.g. an output 'File' and this property does NOT change but your Generate() method returns true, all nodes bound to this File property are forced to process the bound value even if it did not change!
Ventuz Nodes do normally not check if a Input has really changed because this is manged by the Binding. But in case of Script Output properties the user is responsible for the optimization.
If I change the Loop properties of the Movie Clip node manually, the Events are not triggered.

Best Regards
Karol

Post Reply