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 -rgba.blue none}
 color 1
 name Constant2
 selected true
 xpos -293
 ypos -222
}
Text2 {
 font_size_toolbar 300
 font_width_toolbar 100
 font_height_toolbar 100
 message "GREEN light"
 old_message {{71 82 69 69 78 32 108 105 103 104 116}
   }
 box {186 671.5 1878 972.5}
 transforms {{0 2}
   }
 font_size_values {{0 300 1 300 2 300 3 300 4 300 5 300 6 300 7 300 8 300 9 300 
10 300 0 300 5 300 6 300 7 300 8 300 9 300 10 300}
   }
 font_size 300
 scale {1 1}
 cursor_initialised true
 initial_cursor_position {{186 972.5}
   }
 group_animations {{0} imported: 0 selected: items: "root transform/"}
 animation_layers {{1 11 1024 778 0 0 1 1 0 0 0 0}
   }
 color {1 0 0 1}
 name Text5
 selected true
 xpos -293
 ypos -150
}
Constant {
 inputs 0
 channels {rgba.red -rgba.green -rgba.blue none}
 color 1
 name Constant1
 selected true
 xpos -448
 ypos -229
}
Text2 {
 font_size_toolbar 300
 font_width_toolbar 100
 font_height_toolbar 100
 message "RED light"
 old_message {{82 69 68 32 108 105 103 104 116}
   }
 box {369 655.5 1659 956.5}
 transforms {{0 2}
   }
 font_size_values {{0 300 1 300 2 300 3 300 4 300 5 300 6 300 7 300 8 300 0 300 
1 300 2 300 3 300 4 300 5 300 6 300 7 300 8 300}
   }
 font_size 300
 scale {1 1}
 cursor_initialised true
 initial_cursor_position {{369 956.5}
   }
 group_animations {{0} imported: 0 selected: items: "root transform/"}
 animation_layers {{1 11 1024 778 0 0 1 1 0 0 0 0}
   }
 color {0 1 0 1}
 name Text4
 selected true
 xpos -448
 ypos -157
}
Switch {
 inputs 2
 which {{"floor(frame/12) % 2"}}
 name Switch1
 selected true
 xpos -382
 ypos -73
 disable {{"frame <1020 ? 1 : 0"}}
}
Dot {
 name Dot1
 label "using an expression in the\nswitch knob and disable knob"
 note_font_size 20
 selected true
 xpos -348
 ypos -19
}
Constant {
 inputs 0
 channels {rgba.red rgba.green rgba.blue none}
 name Constant5
 selected true
 xpos 208
 ypos -232
}
Text2 {
 font_size_toolbar 300
 font_width_toolbar 100
 font_height_toolbar 100
 message "OFF state"
 old_message {{79 70 70 32 115 116 97 116 101}
   }
 box {383 671.5 1677 972.5}
 transforms {{0 2}
   }
 font_size_values {{0 300 1 300 2 300 3 300 4 300 5 300 6 300 7 300 8 300 0 300}
   }
 font_size 300
 scale {1 1}
 cursor_initialised true
 initial_cursor_position {{383 972.5}
   }
 group_animations {{0} imported: 0 selected: items: "root transform/"}
 animation_layers {{1 11 1024 778 0 0 1 1 0 0 0 0}
   }
 name Text3
 selected true
 xpos 208
 ypos -160
}
Constant {
 inputs 0
 channels {-rgba.red rgba.green -rgba.blue none}
 color 1
 name Constant3
 selected true
 xpos 95
 ypos -235
}
Text2 {
 font_size_toolbar 300
 font_width_toolbar 100
 font_height_toolbar 100
 message "GREEN light"
 old_message {{71 82 69 69 78 32 108 105 103 104 116}
   }
 box {186 671.5 1878 972.5}
 transforms {{0 2}
   }
 font_size_values {{0 300 1 300 2 300 3 300 4 300 5 300 6 300 7 300 8 300 9 300 
10 300 0 300 5 300 6 300 7 300 8 300 9 300 10 300}
   }
 font_size 300
 scale {1 1}
 cursor_initialised true
 initial_cursor_position {{186 972.5}
   }
 group_animations {{0} imported: 0 selected: items: "root transform/"}
 animation_layers {{1 11 1024 778 0 0 1 1 0 0 0 0}
   }
 color {1 0 0 1}
 name Text2
 selected true
 xpos 95
 ypos -163
}
Constant {
 inputs 0
 channels {rgba.red -rgba.green -rgba.blue none}
 color 1
 name Constant4
 selected true
 xpos -13
 ypos -244
}
Text2 {
 font_size_toolbar 300
 font_width_toolbar 100
 font_height_toolbar 100
 message "RED light"
 old_message {{82 69 68 32 108 105 103 104 116}
   }
 box {369 655.5 1659 956.5}
 transforms {{0 2}
   }
 font_size_values {{0 300 1 300 2 300 3 300 4 300 5 300 6 300 7 300 8 300 0 300 
1 300 2 300 3 300 4 300 5 300 6 300 7 300 8 300}
   }
 font_size 300
 scale {1 1}
 cursor_initialised true
 initial_cursor_position {{369 956.5}
   }
 group_animations {{0} imported: 0 selected: items: "root transform/"}
 animation_layers {{1 11 1024 778 0 0 1 1 0 0 0 0}
   }
 color {0 1 0 1}
 name Text1
 selected true
 xpos -13
 ypos -161
}
Switch {
 inputs 3
 which {{"frame <1020 ? 2 : floor(frame/12) % 2"}}
 name Switch2
 selected true
 xpos 95
 ypos -38
}
Dot {
 name Dot2
 label "using an expression in the switch \nknob only with an off state added"
 note_font_size 20
 selected true
 xpos 129
 ypos 7
}



> On 7 Feb 2017, at 3:07 PM, Darren Coombes <darren.coom...@me.com> 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 
> <http://www.vimeo.com/darrencoombes/reel2015>
> 
> Mob:  +61 418 631 079 <tel:+61%20418%20631%20079>
> IMDB: www.imdb.com/name/nm3719099/ <http://www.imdb.com/name/nm3719099/>
> Instagram: @7secondstoblack
> Instagram: @durwood0781
> Skype:  darren.coombes81
> Twitter:  @durwood81
> 
>> On 7 Feb 2017, at 3:02 pm, Ben Dickson <ben.dick...@rsp.com.au 
>> <mailto:ben.dick...@rsp.com.au>> wrote:
>> 
>> 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 
>>> <http://www.vimeo.com/darrencoombes/reel2015>
>>> <http://www.vimeo.com/darrencoombes/reel2015 
>>> <http://www.vimeo.com/darrencoombes/reel2015>>*
>>> *
>>> *
>>> *
>>> *
>>> *
>>> *
>>> *Mob: +61 418 631 079 <tel:+61%20418%20631%20079>*
>>> *
>>> IMDB: www.imdb.com/name/nm3719099/ <http://www.imdb.com/name/nm3719099/> 
>>> <http://www.imdb.com/name/nm3719099/ <http://www.imdb.com/name/nm3719099/>>
>>> *
>>> *Instagram: @7secondstoblack*
>>> *Instagram: @durwood0781*
>>> *Skype:  darren.coombes81*
>>> *Twitter:  @durwood81*
>>> *
>>> 
>>>> On 7 Feb 2017, at 2:45 pm, Ben Dickson <ben.dick...@rsp.com.au 
>>>> <mailto:ben.dick...@rsp.com.au>
>>>> <mailto:ben.dick...@rsp.com.au <mailto:ben.dick...@rsp.com.au>>> wrote:
>>>> 
>>>> 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*
>>>>> **
>>>>> *
>>>>> *
>>>>> *Check out some of my work...*
>>>>> *
>>>>> *
>>>>> *www.vimeo.com/darrencoombes <http://www.vimeo.com/darrencoombes> 
>>>>> <http://www.vimeo.com/darrencoombes <http://www.vimeo.com/darrencoombes>>
>>>>> <http://www.vimeo.com/darrencoombes <http://www.vimeo.com/darrencoombes>>*
>>>>> *
>>>>> *
>>>>> *
>>>>> *
>>>>> *
>>>>> *
>>>>> *Mob: +61 418 631 079 <tel:+61%20418%20631%20079>*
>>>>> *
>>>>> *
>>>>> *Skype:  darrencoombes*
>>>>> *Twitter:  @durwood81*
>>>>> *
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Nuke-users mailing list
>>>>> Nuke-users@support.thefoundry.co.uk 
>>>>> <mailto:Nuke-users@support.thefoundry.co.uk>
>>>>> <mailto:Nuke-users@support.thefoundry.co.uk>,
>>>>> http://forums.thefoundry.co.uk/
>>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>>>>> 
>>>> 
>>>> --
>>>> ben dickson
>>>> 2D TD | ben.dick...@rsp.com.au <mailto:ben.dick...@rsp.com.au> 
>>>> <mailto:ben.dick...@rsp.com.au <mailto:ben.dick...@rsp.com.au>>
>>>> rising sun pictures | www.rsp.com.au <http://www.rsp.com.au/> 
>>>> <http://www.rsp.com.au <http://www.rsp.com.au/>>
>>>> _______________________________________________
>>>> Nuke-users mailing list
>>>> Nuke-users@support.thefoundry.co.uk 
>>>> <mailto:Nuke-users@support.thefoundry.co.uk>
>>>> <mailto:Nuke-users@support.thefoundry.co.uk>,
>>>> http://forums.thefoundry.co.uk/
>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Nuke-users mailing list
>>> Nuke-users@support.thefoundry.co.uk 
>>> <mailto:Nuke-users@support.thefoundry.co.uk>, 
>>> http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/>
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users 
>>> <http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users>
>>> 
>> 
>> -- 
>> ben dickson
>> 2D TD | ben.dick...@rsp.com.au <mailto:ben.dick...@rsp.com.au>
>> rising sun pictures | www.rsp.com.au <http://www.rsp.com.au/>
>> _______________________________________________
>> Nuke-users mailing list
>> Nuke-users@support.thefoundry.co.uk 
>> <mailto:Nuke-users@support.thefoundry.co.uk>, 
>> http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/>
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users 
>> <http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users>
> 
> _______________________________________________
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

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

Reply via email to