This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyWidget::MyWidget(MyKnob* knob) : _knob(knob), _value(knob->_data), _dragging(false) | |
{ | |
setFixedSize(60, 30); | |
_switchRect = rect(); | |
_knob->addCallback(WidgetCallback, this); | |
} | |
MyWidget::~MyWidget() | |
{ | |
if (_knob) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 14.1 v5 | |
push $cut_paste_input | |
Expression { | |
channel0 {rgba.red -rgba.green rgba.blue} | |
name Expression5 | |
selected true | |
xpos 2349 | |
ypos -55 | |
addUserKnob {20 User} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nuke | |
import os | |
def parse_nuke_layout(filepath): | |
""" | |
Parses the XML window layout from the header of a Nuke (.nk) script file. | |
Args: | |
filepath (str): The full path to the .nk script file. |
OlderNewer