Page 1 of 1

why changing ControlLoopBegin dispatches Loaded Event

Posted: 06 Apr 2014, 13:06
by adhamdwikat
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 ?

Re: why changing ControlLoopBegin dispatches Loaded Event

Posted: 06 Apr 2014, 14:01
by adhamdwikat
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 ! .

Re: why changing ControlLoopBegin dispatches Loaded Event

Posted: 06 Apr 2014, 15:11
by adhamdwikat
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 !.

Re: why changing ControlLoopBegin dispatches Loaded Event

Posted: 09 Apr 2014, 14:42
by Karol
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