Quote:
Originally Posted by StainlessS
Does the After_frame=true, also hold or not ?
EDIT: Oops, you already included that, but is it true of the
Code:
Y ? FrameEvaluate("global grainStrY = LumaDifference(GE_nr)" ,after_frame=true ) : nop
line
|
It's not necessary there, since the first three (Y, U, V) assignments can be done in any order, and the only thing that matters is that the assignment to ydiff is done last.
@bennynihon: Another problem I foresee with your script is that you will need to use WriteFile() to get the final value of ydiff out of your script, since it is accumulated at run-time.
You could use the ScriptClip("WriteFile(..., append=false")) trick (see
this post) so that only the final value is left in the file.
An alternative would be to loop over the frames at compile-time using GScript, as in StainlessS's approach in post #7.