Blog

Node Disabling

posted Oct 24, 2018, 7:59 AM by Levente Vass   [ updated Oct 25, 2018, 7:15 AM ]

  # Python      

This is a simple node disable tool, it's useful if you have a lot of VectorBlur in your graph :).
 
# get type of selected node
# print(nuke.selectedNode().Class())

def node_disabling(n_s_mode, n_class, switcher=False): """Simple node disabler. Parameters
----------
 n_s_mode: str
all -- search in all nodes sn -- search in selected nodes n_class: str
node class switcher: boolean
False or 0 -- node enabled True or 1 -- node disabled

 Returns
-------
None """
n_s = {n_s_mode == 'all': nuke.allNodes(), n_s_mode == 'sn': nuke.selectedNodes()}.get(True, 0)
for i in n_s: if i.Class() == '{0}'.format(n_class): i.knob('disable').setValue(switcher) del n_s
# example: #node_disabling('all', 'Grade', 0)

Simple Hotkey Setup

posted Oct 17, 2018, 9:51 PM by Levente Vass   [ updated Oct 25, 2018, 7:10 AM ]

  # Python       

Small code snippet for hotkey setup, extend hotkeys nested list with new items,  usage:
['Draw/Grain',           'Grain2',                  'Alt+I']
⇑ ⇑
Path/to/node Node class, Hotkey
   
          and default values (optional)

# insert code snippet to menu.py
menu = nuke.menu('Nodes') hotkeys = [ ['Filter/Blur', 'Blur, size 20 label "hello world"', 'B'], ['Draw/LightWrap', 'LightWrap', 'L'], ['Draw/Grain', 'Grain2', 'Alt+I']
# ... your hotkeys
]
def assign_hotkey(n_path, c_node, h_key):
"""Batch hotkey assignment.

Parameters
----------
n_path: str
the node path in the menu
c_node: str
node class
h_key: str
assigned hotkey

Returns
-------
None

"""
c_node_splitted = c_node.split(',') menu.addCommand(n_path, lambda: nuke.createNode(*c_node_splitted), h_key)
n_path_i = 0 c_node_i = 1 h_key_i = 2 for i in hotkeys: assign_hotkey(i[n_path_i], i[c_node_i], i[h_key_i])

Write and Notify

posted Apr 24, 2018, 9:05 PM by Levente Vass   [ updated Oct 24, 2018, 9:35 PM ]

  # Plugin          

I share my new messaging plugin on nukepedia and GitHub. Hurray!!!
When your render is done, the tool sends you a notification.
The tool currently works with g-mail and yahoo accounts.

    Available on Nukepedia and GitHub.

Disable Hiero status bar in Nuke 11

posted Apr 24, 2018, 9:04 PM by Levente Vass

  # Tip         
If you don't like the Hiero statusbar in Nuke 11, rename these files:

pathtonuke/pythonextensions/site-packages/hiero/ui/FnStatusBar.py
pathtonuke/pythonextensions/site-packages/hiero/ui/FnStatusBar.pyc

I didn't find other solution for this.

Hello

posted Apr 24, 2018, 9:03 PM by Levente Vass

  # Other          

Hi, I'm Levente Vass. I currently work as digital compositor at UPP. This Blog created for compositing things.

1-5 of 5

Comments