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
""" | |
Will convert aiStandardSurface to usdPreviewSurface. | |
Usage: | |
- Select aiStandardSurface nodes and execute code. | |
""" | |
import pymel.core as pc | |
def list_connections(node, skip_nodes, **kwargs): |
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
""" | |
Select targets then source last. | |
""" | |
import pymel.core as pc | |
from ngSkinTools.mllInterface import MllInterface | |
selection = pc.ls(selection=True) | |
targets = selection[:-1] | |
source = selection[-1] |
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
import nuke | |
x_separation = 110 | |
y_separation = 110 | |
selection = {} | |
for node in nuke.allNodes(): | |
if node["selected"].value(): | |
selection[node.name()] = node |
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
import shutil | |
import hiero | |
destination = r"C:\Users\tokejepsen\Desktop\movs" | |
for item in hiero.selection: | |
if isinstance(item, hiero.core.EffectTrackItem): | |
continue |
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
import subprocess | |
import os | |
chunk_frames = 25 | |
chunk_amount = 3 | |
framerate = 25 | |
duration = chunk_frames / framerate | |
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
import nuke | |
def main(node): | |
node["selected"].setValue(False) | |
average_intensity = 0 | |
keys = 0 | |
for channel in node["intensitydata"].animations(): | |
for key in channel.keys(): | |
average_intensity += key.y |
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
""" | |
Select all TimeClips and run code. | |
Will produce a frame hold with start middle and end of the time clips. | |
""" | |
import nuke | |
frames = [] | |
for node in nuke.selectedNodes(): | |
node["selected"].setValue(False) |
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
import hiero | |
selection = hiero.selection | |
comment_tag = None | |
for item in selection[0].project().tagsBin().items(): | |
if item.name() == "Comment": | |
comment_tag = item | |
break |
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
import hiero | |
seq = hiero.ui.activeSequence() | |
selection = hiero.selection | |
for item in selection: | |
if isinstance(item, hiero.core.EffectTrackItem): | |
continue |
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
import hiero | |
seq = hiero.ui.activeSequence() | |
selection = hiero.selection | |
source_track = "edit" | |
data = {} | |
for video_track in seq.videoTracks(): |
NewerOlder