Smart motionblur switch 'OFF/ON'

Youtube Video

When you are working with motionblur the comp can become very slow to work with.

This script allows you to turn OFF/ON motionblur, and remembers the previous values you have set, with one click for ALL: ScanlineRenders, Transforms, TransformMasked, Trackers, CornerPin, VectorBlurs, DirectionalBlurs, MotionBlur, and RealSmartMotionblur nodes in your whole comp, or only on your selected nodes depending if you have made a selection or not.

It's smart enough to know which nodes can be affected, even if you have made a mixed selection of nodes, that have and don't have motionblur to toggle (e.g. transforms, grades, trackers, and merges - it will only affect the transforms and trackers).

Depending if you have made a selection or not, it will check if there is a motionblur to be turned OFF, so whenever you run the script it will make sure to turn off the motionblur first, and if you run the script again, it will turn back ON the motionblur. If you changed the motionblur values while the motionblur has been turned off, it will ask you, do you want to keep your old values or update the new ones. For safety reasons, undo commands(ctrl+z) in Nuke won't affect the changes made by the script, to turn back on the motionblur, just simply run the script again.

note:

This script creates User tab (if you don't already have one) and 2 disabled knobs (named tempMb, and tempMb2) where it can store the necessary information for the script to work with. I chose to use knobs for each affected node so you can save your .nk file and reopen it later and continue working from where you left off.

Please do not mess with these two knobs, if you do it can, and it will mess up the logic and your motionblur values in your comp (thus why i set them to disabled, they are only used by the script)

Refer to the 'READ ME!.txt' file in the download, on how to install or change the color of the affected nodes to what you like

Enjoy!

UPDATE(12/nov/2016): Version 2.2 (new features)

* Added 8 new nodes to work with:

CornerPin, VectorBlur(and the old verssion of VectorBlur), DirBlur, DirBlurWrapper, RSMB, RSMB PRO, RSMB PRO Vectors.

* Excludes 'undo' command in nuke for changes made by the script, to prevent logical errors.

note: for the RSMB and RSMBPRO nodes, the motionblur is turned off by switching the 'Display' knob to 'Source Unblurred', the script will be smart enough to remember your previous choise though. For the RSMBPRO Vectors node, the script works as usual, storing your values in temp knob.

(to install the new version, just replace the old file 'smartMotionblurSwitch.py' with the new one, in your /.../.nuke Directory.)

PREVIOUS UPDATES:

UPDATE: Version 1.2



* fixed major bug in the logic of the code

(to install the new version, just replace the old file 'smartMotionblurSwitch.py' with the new one, in your /.../.nuke Directory.)

UPDATE(28/sep/2016): Version 2.0 (new features)

* Now works with TransformMasked, and the older version of the Tracker node as well

* If you have made a selection it will only affect those nodes, if you don't have anything selected it will affect all the nodes in your comp.

* It's smarter now! Even if you have made a mixed selection of nodes that have, and don't have motionblur to toggle off or on, it will only affect the nodes that has motionblur. It will also tell you if you have eligible nodes to work with in your selection, or in your whole comp, etc.

* Code improvements

* Color for affected nodes changed from dark blue to more dark blue/greenish

(to install the new version, just replace the old file 'smartMotionblurSwitch.py' with the new one, in your /.../.nuke Directory.)

UPDATE(30/sep/2016): Version 2.1 (new feature)

* If you have changed the values while the motionblur was turned OFF by the script and you try to turn it on, it will ask you if you would like to replace the old ones with the new.

(to install the new version, just replace the old file 'smartMotionblurSwitch.py' with the new one, in your /.../.nuke Directory.)