Re: [Nuke-users] Switch expression

2017-02-07 Thread Igor Majdandzic
Now that everyone wrote something: rint((frame-*startframe*)%24/24)Send from the RoadIgor MajdandzicCompositor, TD, Supervisor@Chimney FrankfurtAm 07.02.2017 2:52 nachm. schrieb Howard Jones :x>1000?floor(x/12) % 2:0  (assuming input 0 is your default start)

Re: [Nuke-users] Switch expression

2017-02-07 Thread Howard Jones
x>1000?floor(x/12) % 2:0 (assuming input 0 is your default start) Howard Jones Visual Effects Supervisor m: 07973 265624 | e: how...@axis-vfx.com | w: www.axis-vfx.com > On 7 Feb 2017, at 06:47, Ben Dickson wrote: > > Just change: > frame > > to: > (frame-1001) > >

Re: [Nuke-users] Switch expression

2017-02-06 Thread Ben Dickson
Just change: frame to: (frame-1001) to offset the starting point On 07/02/17 14:37, Darren Coombes wrote: Great, seems to work, but what if i needed it to start from frame 1001? Check out some of my work... * *www.vimeo.com/darrencoombes/reel2015

Re: [Nuke-users] Switch expression

2017-02-06 Thread adam jones
hey hey you could also do it all (expression) in the switch knob whilst also adding an off state to the mix. hope that is along the lines of what you are after. regards -adam —— set cut_paste_input [stack 0] version 10.0 v1 Constant { inputs 0 channels {-rgba.red rgba.green

Re: [Nuke-users] Switch expression

2017-02-06 Thread adam jones
Hey hey the previous expression postedfloor(frame/12) % 2 will work across any frame range but if you wanted this to only kick in from a particular frame in your shot use the below expression in the disable knob on the switch node? frame < 1020 ? : 1 obviously change the frame that

Re: [Nuke-users] Switch expression

2017-02-06 Thread Darren Coombes
Great, seems to work, but what if i needed it to start from frame 1001? Check out some of my work... www.vimeo.com/darrencoombes/reel2015 Mob: +61 418 631 079 IMDB: www.imdb.com/name/nm3719099/ Instagram:

Re: [Nuke-users] Switch expression

2017-02-06 Thread Ben Dickson
Ah, right, floor(frame/12) % 2 On 07/02/17 14:17, Darren Coombes wrote: Just alternate, so it would go.. 0,1,0,1 etc every 12 frames. Check out some of my work... * *www.vimeo.com/darrencoombes/reel2015 * * * * * * * *Mob: +61 418 631 079

Re: [Nuke-users] Switch expression

2017-02-06 Thread Darren Coombes
Just alternate, so it would go.. 0,1,0,1 etc every 12 frames. Check out some of my work... www.vimeo.com/darrencoombes/reel2015 Mob: +61 418 631 079 IMDB: www.imdb.com/name/nm3719099/ Instagram: @7secondstoblack

Re: [Nuke-users] Switch expression

2017-02-06 Thread Ben Dickson
Change in what way? If you mean to cycle through a different input every 12 frames, you would do (assuming your shots starts on frame 1001): floor((frame-1001)/12) On 07/02/17 14:03, Darren Coombes wrote: How would a get a switch to change, say every 12 frames? * *Thanks.* *Darren Coombes*