Skip to content

Instantly share code, notes, and snippets.

@maty974
maty974 / gist:c076ff829063f70db3d9
Last active October 18, 2021 08:27
nuke update fbx knobs without popup message
orig_node=nuke.selectedNode()
new_filepath="/path_dir/path_to_new_file.fbx"
# save current fbx take and node name knob
fbx_take=orig_node.knob("fbx_take_name").getValue()
fbx_node=orig_node.knob("fbx_node_name").getValue()
# set knob flag NO_KNOB_CHANGED to avoid popup message
orig_node.knob("file").setFlag(0x00020000)
@maty974
maty974 / setNukeZeroMarginsWidget.py
Last active March 14, 2024 09:09
The Foundry Nuke hack works with "nukescripts.panels.registerWidgetAsPanel", to remove the disturbing widget contents margins set by Nuke.
'''
Created on Feb 8, 2013
@author: matthieuc
@contact: matthieu.cadet@gmail.com
'''
import PySide.QtGui as QtGui
def setNukeZeroMarginsWidget(widget_object):