lifetimeRoto v1.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: satheesh R
lifetimeRoto.py automatically sets the selected rotoshapes lifetime based on the shapes key frame's. This code get the selected shapes keyframe value ( example: 10, 20, 30) and apply min and max to lifetime start and end respectively. After i run this code my roto shape lifetime set to 10 - 30 automatically by single click or short-key.
Requirements:
9.0, 8.0, 7.1, 7.0 or later
02 Apr 2016
283

One of my requested to automate roto shapes lifetime based on the key frame. We use multiple way to set roto shapes lifetime. Some artists uses lifetime tab in roto node, Some simply move the roto shape out of the working resolution. Some guys are using 'multiply' node to achieve this. Some artists animating 'visible' knob in roto node. The way of doing this will differ from artist to artist. How to make this organised ?. 

Here is the idea: lifetimeRoto.py

Most of us using nuke roto node lifetime tab set the lifetime based on the frame range.

Some artists using mouse click option in curve window in roto node.

In both way we need to feed the frame range either we need to choose to-end or to start. Doing this is not time consuming task for compers. But for roto & clean-up artist ? 

lifetimeRoto.py automatically sets the selected rotoshapes lifetime based on the shapes key frame's. This code get the selected shapes keyframe value ( example: 10, 20, 30) and apply min and max to lifetime start and end respectively.  After i run this code my roto shape lifetime set to 10 - 30 automatically by single click or short-key.

I hope this will helpful. Feature request and bug reports are welcome.

 

I have assigned 'shift+L' as short-cut. Select your roto shape and make sure you have selected the roto node. Run this shortcut, Boooommmm. Your roto shape lifetime sets based on the keyframe.

 

 

menuBar = nuke.menu('Nuke')

 

menuBar.addCommand('Edit/Node/lifetimeRoto', 'lifetimeRoto.setRotoLifeTime()', 'shift+l')

 

Please login in order to download these files.

Comments   

 
0 # darren coombes 2019-05-23 08:10
does this work in nuke 11.2v2?
 
 
+1 # dmitry cheh 2020-03-31 13:55
name 'lifetimeRoto' is not defined...
why?
 
 
0 # BIKRAM DEY 2020-09-15 08:53
Wow that's nice but can it's get's work on the entire frame range where the shot it's random motion in a shape for a different frame??Hi myslef Rony i'm an VFX CG student from India Please any cool tip any suggestion please
 

You have no rights to post comments

We have 3524 guests and 109 members online