Saturday, October 26, 2013

rename roto shapes in silhouette

I know this is for another application. Anyhow this script will help you friends. So im sharing this with you.

I searched very long some python code for rename roto shapes in silhouette. I tried my self sometime but can't make it exactly what i want. Accidentally i got the script from Johnny Chan's web site.

I made some changes with his script to make it more usable. You can customize as per your need. Hope this will help you friends.

This code will take the Layer name and replace the name to shapes inside the Layer. So no need to rename your hundreds and hundreds of roto shapes manually inside silhouette.

Follow below steps To make it work..


1. Rename your Layer:

2. Go to satheesh in menu bar. Under satheesh you can find Rename-> Rename shapes.  select . ( silhouette 5plus)

Go to Action in menu bar. Under Action you can find Rename-> Rename shapes.  select . ( silhouette 4 or below)

silhouette 5 above...

silhouette 4 and below.


That's it....

Thanks to Johnny Chan's for this most usefull code.


There are 2 python codes inside the file. One for silhouette 5plus and another one for silhouette 4 and below.

download the script and Copy paste it into....

Linux:  /opt/SilhouetteFX/silhouette v5.1/resources/scripts/actions/
(you have to change permission to copied file. Run this command in shell...  chmod 777 -R /opt/SilhouetteFX/silhouette v5.1/resources/scripts/actions/

Windows: C:/Program Files/SilhouetteFX/Silhouette v5.0/resources/scripts/actions/
Restart silhouette. Enjoy :)

Tested with windows and Linux. Working fine with silhouette v5 and v4.1.

Saturday, October 12, 2013

Bake tracker to Roto

Everyday we are (compers) doing this process so many times. We use tracker information to do most of the Roto. For doing this we are doing following things:
Usually Some compers copy the Tracker node and paste it next to the Roto node which need to match-moved.

Some use to copy paste the Trackers animation value into roto node's Root transform.

Following first step will slow down out script. Think if you have 50-100 roto shapes with tracker node.

Connecting tracker values to roto node is best way, But connecting manually with so many roto node is time consuming process.
So found the solution to automate this process.

Run this code with tracker node selected. This will create a roto node with selected tracker nodes  track information baked. So draw shape at any point and it will follow the tracked object..

This code will bake tracking information based on your tracker node. If your tracker node enabled only transform information then it will connect only the transform value. If your tracker enabled TRS then it will connect all the information automatically.

Hope this will help you friends..... cheers..

Updated on 26/12/2013.

Now this code create default roto node while user selected other nodes or nothing is selected.



## trackRoto v1.1
## For bugs please email me at
## Compatibility: Nuke v5 - v8 plus

import nuke, os, re

def trackRoto():
        sel = None
                sel = nuke.selectedNode()
                X = sel.xpos()
                Y = sel.ypos()
        except ValueError:  # no node selected
        if sel is None:
                rt = nuke.createNode('Roto')
        if sel:
                NodeType = re.sub(r"\d", "", sel.Class())
                print NodeType
                if NodeType == 'Tracker':
                        rt = nuke.createNode('Roto')
                        rt.setInput(0, None)

                        rt = nuke.createNode('Roto') lines:

import trackRoto
n = nuke.toolbar('Nuke')
n.addCommand('Edit/trackRoto', 'trackRoto.trackRoto()', 'O')

connectCamera script for nuke

connectCamera python script for nuke connectCamera script helps users to connect with any camera from anywhere in their nuke script. W...