Smart motionblur switch 'OFF/ON' v2.2


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Kire Timov
1. Turns OFF and ON the motionblur for: ScanlineRenders, Transforms, TransformMasked, Trackers, CornerPin, VectorBlurs, DirectionalBlurs, MotionBlur, and RealSmartMotionblur nodes. 2. Depending if you have selected nodes or not - it will only affect the selection, or the whole comp 3. Stores values in your .nk file so you can save, and reopen your comp later, and turn OFF/ON the motionblur 4. Works with animated values 5. Colorcode the nodes that are affected by the script 6. Excludes 'undo' command in nuke for changes made by the script, to prevent logical errors
Requirements:
10.0, 9.0, 8.0 or later
Linux, Windows
17 Nov 2016
206

Smart motionblur switch 'OFF/ON' 

 ytbMbYoutube 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: ScanlineRendersTransformsTransformMaskedTrackers, 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.)
 

 

  

Fell free to use and change this script to match your needs, the author isn't responsable for any damage made by the script for more info or you find some bugs or some ideas for improvements feel free to contact me Copyright (c) 2016 Kire Timov [[email protected]]
Please login in order to download these files.

Comments   

 
+3 # Bala vfx 2016-10-03 04:46
One great Script. Very helpful. Thanks Kire!
 
 
# kire timov 2016-10-04 18:17
Quoting Bala vfx:
One great Script. Very helpful. Thanks Kire!

I am glad you like it mate. Enjoy
 
 
+1 # James Rumas 2017-03-17 20:14
This is amazing. Thank you for sharing!
 

You have no rights to post comments

We have 4027 guests and 117 members online