This file contains 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
#python | |
''' | |
Notifier Command | |
Demonstrates how to write an executable and queryable command. | |
The difference is that this command will listen for state changes | |
in a scene. If the selection changes, then the command will check | |
its enable/disable state and force any form it's embedded into |
This file contains 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
#python | |
''' | |
Query Command | |
Demonstrates how to write an executable and queryable command. | |
This will query a channel value on the selected items, | |
inputting a value will update the channel and querying the | |
value will show the current value of the channel. The command |
This file contains 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
#python | |
""" Match Item Transforms. | |
Command matches transforms of one item to another. | |
Select 2 or more items and all items will be matched to last selected one. | |
I'm not author of this command. | |
This is python translation of Matt Cox's matchXfrm.cpp C++ equivalent | |
and was done as an exercise while learning MODO python API. |
This file contains 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
"""Test of finding Nuke's viewer widget, and intercepting the hardwired "c" shortcut and rewiring it to view the RGB channel | |
""" | |
from PySide import QtGui, QtCore | |
def findviewer(): | |
stack = QtGui.QApplication.topLevelWidgets() | |
viewers = [] | |
while stack: |
NewerOlder