View Single Post
Old 25th March 2013, 21:03   #7  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
Quote:
Originally Posted by StainlessS View Post
Look into what JM said, but this might be the immediate problem you had
Code:
    Global ydiff = ydiff + grainStrY # need to use Global when assigning to a global,
you'de also have to divide by the number of sampled frames.
I have ydiff defined as a global in my main script (outside of this function) to initialize it. That's also where I divide it by the total number of frames.

Quote:
EDIT:
Think you may need to use the After_Frame=true arg to FrameEvaluate()
ie
Code:
  Y ? FrameEvaluate("global grainStrY = LumaDifference(GE_nr)" ,after_frame=true   ) : nop
I'll have to try this out. Thanks.
bennynihon is offline   Reply With Quote