def run(): metrics.log_usage(APP_NAME) # return global nuke_supertab_ui if nuke_supertab_ui is not None: nuke_supertab_ui.show() nuke_supertab_ui.raise_() return node_item_proxies = item_groups.setdefault('nip', node_listing()) node_action_group = SuperActionGroup('Nodes', node_item_proxies, action_type=NukeMenuAction) nuke_supertab_ui = SuperTab([node_action_group]) nuke_supertab_ui.show()
from vfx_utils.plutonium.core import move from vfx_utils.plutonium.core import filters import vfx_utils.omni.metrics as metrics # domain import nuke # -------------------------------------------------------------------------- # # --------------------------------------------------------------- GLOBALS -- # VERSION = '3.1' DEBUG_VERSION = '3.1.1' APP_NAME = "gizmo_pointMatte" metrics.log_usage(APP_NAME) # -------------------------------------------------------------------------- # # ------------------------------------------------------------- FUNCTIONS -- # @decorators.this_node def add_point(node=None): """add a pointmatte to the gizmo""" with node: # ------------------- Setup ---------------------------------- # builder = nuke.toNode('builder_dot') start_position = crawl.up(builder)[0] point_nodes = [ int(n.name()[-1]) for n in filters.by_class(key='pointMatte') ]