Posts

Import fbx camera

Image
importFbxCamera.py Import fbx camera script will add a camera node and import the camera data from the fbx file based on selected "ReadGeo" node. Usually we import our objects into nuke as a .fbx file. After importing the .fbx file will do the same thing for import the camera from the same file.  To do that go to toolbar-->3D-->Camera... check the "read from the file" and then import the .fbx file by clicking file browser. To get reduce the above timing. I created this small "importFbxCamera" python script.  Import your object files by "ReadGeo" node in nuke. Select the "ReadGeo" node and run this script. It will automatically create a "camera" node and import the camera data from the .fbx file and create a backdrop with shot name. If you have not selected any nodes this script will show a message...    "select ReadGeo node to import camera" Result: Your camera will ...

python scripts for daily work on nuke

Image
I'm updating regularly this post with "Tiny, Tiny " python scripts for daily uses in nuke. 1. For define roto nodes output. Usually  we set the roto node output to "alpha" and premultiply to "rgb" for getting the premultiplied output. like below image: rotoOut python script: This script will do this work by a single mouse click are a short-cut key. import nuke def rotoOut():     for s in nuke.selectedNodes():         s['output'].setValue('alpha')         s['premultiply'].setValue('rgb') save this as rotoOut.py file into your custom python or gizmo DIR. This script works only selected roto nodes. If you want to make it work with all roto nodes in inside nuke means, youe need to change the 3rd line like this... import nuke def rotoOut():     for s in nuke.allNodes('Roto'):         s['output'].setValue('alp...

change Roto Views to left and right

Image
RotoViewsPanel.py This little python script will help you lot when working with stereoscopic conversion. While Import roto nodes from silhouette, mocha and other software’s, Imported roto nodes are output the channels only on "Left" view. Like below image.  We have to change the roto shapes view on both "left & right" for stereo conversion. To do that, manually select all rotoshapes and set the view on "left - right". This may take lot of time to do this on bigger shots. So how to reduce this manual work. Here is the solution for that. RotoViewsPanel.py. This script will pop-up a window for setting the selected or all roto nodes views to left are right only are Both. Run this script on nukes script editor and enjoy. result: Hope this script will help you friends. RotoViewsPanel script: class RotoViewsPanel(nukescripts.PythonPanel):     def __init__(self):         import nuke.rotopaint  ...

projecting multiple camera's in a single object

Image
merging multiple camera projections While working with some clean-plate  or clean-up work. Usually we create multiple peace off patches and project those peaces onto the "cards" ( usually ), sometime on some geometry. like below image:   Here i projected on 3 cards for getting this result. I red on fxguide forum, some one asked like this, is there any way to merge multiple camera projection? http://www.fxguide.com/forums/showthread.php?11757-merging-multiple-camera-projections Here is the example image which is he attached. Its look really complicated when its grow with some other patches. Here is solution for this. "MergeMat" will do the magic. Add a mergemat node and merge the two projection node output. Add a card node and connect it with mergemat node . Here is other example. I projected 3 images on a cube by left, right and front side with 3 different cameras. Using "M...

Daily's gizmo for stereo production

Image
stereoDaily.gizmo stereo daily.: Here i'm sharing my latest gizmo for creating daily's for stereo production. StereoDaily gizmo contain three types off  write nodes (Anaglyph, Nvidia 3D vision and 3D tv's).  Its grab file name from your input and add it to the mov with frame no. (like below image) Your file naming convention need to be like below..  ( Project_Reel01_SH_01_v01.l.0001.dpx) or ( Project_Reel01_SH_01_v01.left.0001.dpx) Don't use underscore after version no.. ( Project_Reel01_SH_01_v01_left.0001.dpx) You can change your daily's path as per your wish by update the Daily node path. StereoDaily gizmo automatically create folder structure based on your system date and stores the .mov files on to the daily's folder. Like below image..  G:\Dailys\01_SBS\21-05-2012\Project_Reel01_SH_01_v01.l.0001.mov  I used  photojpeg codec for SBS, Anaglyph and H264 for 3D TV. Add stereoDaily gizmo and import your left, right view file...

Lock and unLock node settings in nuke

Image
Lock and unLock node knobs Nuke doesn't have inbuilt function for lock the node settings( knobs, sliders), Like fusion's node lock function. While working with bigger scripts most of the time we accidentally  adjust the node sliders with out knowing which node is selected. ( what the hell is happening i didn't adjust anything..... ????!!!!! ) This code lock selected nodes knobs. So no worrier’s about accident changes. Right click on the nodes property panel. You will get knobLock & unlock short-cut key. menu.py: import lockNode nuke.menu("Properties").addCommand('lock_Knobs', 'lockNode.lockNode(True)') nuke.menu("Properties").addCommand('unlock_Knobs', 'lockNode.lockNode(False)') Download:  locknode.py Hope this will help you friends.

Custom bokeh or Defocus effect in Nuke

Image
Custom bokeh or Defocus effect in Nuke Here i am explaining how to create Custom bokeh or Defocus effect using convolve tool inside Nuke and how to generate chromatic aberration with the bokeh effect. There are several custom plugins and Gizmos available for creating bokeh effects in nuke. But how to create Custom bokeh shapes using Nuke's by-default tools. Here is the solution. Nuke's "Convolve" tool doing the magic. Here is some examples: Default circle shape. Custom heart shape. Used roto tool to create heart shape. You can use Letter or special characters. Convolve tool. Nuke--> toolbar--> filter--> convolve. Convolve have B and A input arrows. B for source input and A for custom shape ( Create by yourself ). Connect both inputs and change channels to rgba and enable channel as rgba.alpha to make it work. convovle default property widow: convovle modified property widow: Generate chromatic aberration: Chr...