Custom Scripts III: Camera labeling for CaraVR


This is my first script for CaraVR! 🙂 It’s very simple but it helps me a lot when I’m working with c_camerasolver and c_stitch separation workflows.

The problem is that when you execute actions like “STMaps (separate)” or “Transforms (separate)”, Nuke creates a lot of nodes without labeling, so you must go and check one by one, which node stream corresponds to each camera. This scripts creates an automatic labeling based on the camera, so it makes the project easy and quick to read.

Here it is:

def caravr_labeling():
    for i in nuke.allNodes('OneView'):
        i.knob('label').setValue("[python {nuke.thisNode().knob('view').value().upper()}]")
    for j in nuke.allNodes('C_STMap1_0'):
        j.knob('label').setValue('[python nuke.thisNode().input(1).knob("view").value().upper()]')

As said, very simple, but useful.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.