Posts

connectCamera script for nuke

Image
connectCamera python script for nuke connectCamera script helps users to connect with any camera from anywhere in their nuke script. When you run this script it will find all the Camera's from the script, pops a window to choose the desired "Camera" from the list. When you hit connect this script it will create a "Dot" node and connect with the selected camera. Also, add the selected camera name to the Dot. Example video: Download the script: https://github.com/satheeshvfx/Nuke_python_codes/blob/master/connectCamera.py Raw code: ### connect camera v1.0 ### connects user selected camera using a Dot node anywhere from the script ### for bugs and reports satheesrev@gmail.com ### thanks to Wouter Gilsing for helping out to make this happen import nuke def connectCamera(): ###getting list of camera's available in the script cameraNames = ' '.join([n.name() for n in nuke.allNodes('Camera2')]) if ...

Nuke Viewer Interactive Bounding Box Warning message

Image
Viewer Interactive Bounding Box Warning message. Bounding box management is essential in compositing. This applies for all the compositing application. Compositor should have good knowledge in managing bbox in their workflow. Your script became more efficient and manageable by maintaining bbox as original format. Also, this help nuke to render your script much faster. All the big studios teaching artists, how to manage bbox in their script. Even-though, Experienced artists fails to maintain their bbox when it comes deadline. Every compositor knows how an artist works a deadline’s. This is a common issue across the studio. Came up with this small idea to warn the artist when their bbox goes beyond twice as original format. Bundled this tool with viewer LUT. When the bbox became 2times bigger than original format, Viewer pops warning message interactively. Warning message goes away once the bbox became normal.           default sRGB LUT...

simple clean screen using IBK colour with un-premult

Image
simple clean screen using IBK colour with un-premult Many of us using stack of IBK colour node with incremental of values to get clean Blue or Green screen. Example below image: Most cases 1 IBK color node will give good result. But in some shots we ended up stacking multiple IBK color node to get the clean screen(plate). When use multiple IBK color node the script became slow, Each node takes more time to produce the result. How do we overcome this slowness ?! Here is the alternate way: I used blur and un-premult nodes to get the similar result. This is much faster then IBK color stacking. Comparison of both method result: Result looks similar. Some shots this method produced better result compare to IBK color stacking. Final result comparison: Here is the steps: 1. Denoise your plate. 2. Create a IBK colour node. Choose your screen type. Play with the values to get the fine result. 3. Add a premult after IBK colour. 4. Create a Blur node. ...

S_Despill

Image
S_Despill Nuke Gizmo There are tons of despill gizmos and templates available in internet and nukepedia for nuke. Many compositors having their own set of gizmos and technic to do despill. Here is one of my all time fav despill gizmo i have created. Used in many instances over couple of years. S_Despill gives me lot of control in terms of edge management and retaining plate color. This gizmo gives much more control to user 1. User can visualise the the amount of spill removed from the plate. 2. Make your screen to middle gray after removing spill by adjust the multiply. 3. Red Contribution controlling the red amount of de-spill. Mask option give user to apply the red contribution on selected areas. (good for control the skin tone edges) Here is the video demo: Download:  http://www.nukepedia.com/gizmos/channel/s_despill

DeepEdgeSmoother

Image
DeepEdgeSmoother Deep compositing became day to day work in many compositing studios around the world. Nuke having couple of Deep nodes to do Deep compositings. But Nuke still lagging Deep edge manipulating  nodes like edgeBlur, erode etc. I have faced many issues with blending edges while merging Deep inputs with 2D plates. Edge looks too sharp in many cases even there is Deep holdout.  DeepEdgeSmoother is applying softness on both end of Deep layer (Deep front and Deep back). Before: After: This gizmo add smoothness on both end of deep data to blend the edges more naturally. I hope this will help you guys. Download here: DeepEdgeSmoother

roto shape life time settings

Image
roto shape life time based on keyframes This is long time request. I haven't got time to look into this after joined in MPC. Got some time yesterday. Thought to update my blog with new tool. Here is the simple tool but much needed one ( i hope). One of my friend 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. ...

lockNode for nuke

Image
lockNode.py Locking the nodes knobs (sliders) inside nuke very long waited future. It is requested many time with foundry but i don't think they going to add this unique future. So i have decided to create a python code for this function. Her is the solution. This code allow user to lock the nodes knob. Once you lock the knobs, then you cant modify any sliders until you un-lock the knobs. This will save you from any accident changes. Hope this will help you guys. Latest version support to write the info to your nuke script. So it will always locked if you close your nuke script and re-open it. I have used some cheat method to keep the node locked while user save their nuke script. I have tested many times and haven't faced any issues. Let me know if you faced any issues. steps: right mouse click on node property panel. You will get options 'lock_knobs' and 'unlock_knobs'. Select 'lock_knobs'. This code will lock will the knobs and...