the expression says to divide a number (in this case the frame variable) by 24 and if the reminder is smaller then 1, then set the output to 4, otherwise to 1. (btw, personally i'd use: frame%24==0?4:1
it's easier to read and less likely to cause problems)

so if you want to shift it by 5, you could do:
(frame+5)%24==0?4:1

note that if you want to get it to happen on frame 5, you'd have to enter 19 (ie. 24-9) as the offset.
++ chris



On 10/10/12 at 7:56 PM, [email protected] (Jason P Nguyen) wrote:

btw, how do I offset the starting frame of the entire
curve with this expression (frame%24<1?4:1).  I have 2 of
these going on & I want them not to start at the same
time.  I want to shift the entire curve to the frame that
I wanted.

_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to