JeromR / nuke_bricker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NUKE BRICKER

Nuke Gizmo for supervising shots.

In this repository you can found built gizmo in folder built.

Usage

Install

  1. Copy this code to menu.py
import nuke

toolbar = nuke.toolbar("Nodes")
toolbar.addCommand( "Merge/Bricker", "nuke.createNode(\"pw_bricker\")", icon="bricker.png")
def install_bricker():
    nuke.thisNode()['mainScript'].execute()
    nuke.removeOnCreate(install_bricker, nodeClass='pw_bricker')
nuke.addOnCreate(install_bricker, nodeClass='pw_bricker')

#fix overlay action
nuke.menu('Viewer').items()[1].action().setChecked(True)
  1. Copy bricker.png to NUKE_PATH

  2. Restart Nuke

Save from source

If you have an older or newer version you can save gizmo for your version youself.

  1. Open terminal or cmd shell

  2. Go to repository root

cd .../nuke_bricker
  1. Start Nukes python with script compile_nk.py
/path/to/your/Nuke##.#v#/python compile_nk.py

Now new script is created from sources and saved to .../nuke_bricker/dist

  1. Open script .../nuke_bricker/dist/bricker_gizmo.nk in Nuke

  2. Open Control Panel of bricker node, go to tab Node and press export as gizmo.... Select path to some NUKE_PATH location and press Save.

Attention! Don't change gizmo name! It should be named "pw_bricker.gizmo". This is important!

New version of gizmo is saved!

known issues

  1. Break connection when copy\paste

About


Languages

Language:Python 100.0%