Just use your second expression as the seed value for your first:
random( ceil(frame/n)*n )/3+0.8

On Aug 10, 2011, at 12:23 PM, Ron Ganbar wrote:

> Hey guys,
> how do I use this expression from the expression list in the manual: y(frame).
> 
> Basically I have a random generator and I want to sample it every 2 (or 3...) 
> frames. I have the random function. I already made an expression that gives 
> me a number only every n'th frame. How do I connect the two?
> 
> Random expression: random(frame)/3+0.8
> Every n'th: ceil(frame/n)*n
> 
> Cheers,
> Ron Ganbar
> email: [email protected]
> tel: +44 (0)7968 007 309 [UK]
>      +972 (0)54 255 9765 [Israel]
> url: http://ronganbar.wordpress.com/
> 
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

_______________________________________________
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