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
# Workaround for the fact that Bins have no setName method. | |
# Check help for comments on the Undo problems associated with this! | |
from hiero.core import Bin | |
from copy import copy | |
def _setName(self, name): | |
""" | |
self.setName() -> set the name of the Bin. | |
@param: string new name |
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 hiero.exporters | |
def hidePresets(event): | |
# Edit this list to be the name of the preset you'd like to hide: | |
presetNamesToRemove = ["Basic Nuke Shot With Annotations", "Final Cut Pro 7 XML"] | |
# Get hold of the exporters registry object: | |
R = hiero.exporters.registry | |
# Remove the presets in the list above by name... |
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
# Add a Alt+Shift+X keyboard shortcut to Copy Cuts# | |
# Install into ~/.nuke/Python/Startup | |
import hiero.core | |
from hiero.ui import findMenuAction, registerAction, CopyCuts | |
import PySide.QtGui | |
# Change this String to be the keyboard shortcut you'd like... | |
gKeybaordShortcutString = "Alt+Shift+X" | |
def customInit(self): |