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
""" | |
Place in [NUKE_PATH]/Python/StartupUI | |
""" | |
import os | |
from PySide2 import QtCore, QtWidgets | |
import hiero.core.nuke as nuke | |
import hiero.core.nuke.Node |
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 subprocess | |
import sys | |
import os | |
import json | |
import shutil | |
import requests | |
import opentimelineio as otio | |
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 os | |
import clique | |
def recursive_read(): | |
path = nuke.getClipname("Choose Folder", multiple=False) | |
collection_names = {} |
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
""" | |
python C:\Users\admin\Desktop\luminance_batch_hdr.py "C:\Program Files\Luminance HDR\v.2.6.0\luminance-hdr-cli.exe" C:\Users\admin\Desktop\sorted 13 | |
""" | |
import os | |
import sys | |
import subprocess | |
def is_whole(n): | |
return n % 1 == 0 |
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 | |
seq = hiero.ui.activeSequence() | |
selection = hiero.selection | |
source_track = "edit" | |
data = {} | |
for video_track in seq.videoTracks(): |
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 | |
seq = hiero.ui.activeSequence() | |
selection = hiero.selection | |
for item in selection: | |
if isinstance(item, hiero.core.EffectTrackItem): | |
continue |
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 | |
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 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
""" | |
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 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 | |
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 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 subprocess | |
import os | |
chunk_frames = 25 | |
chunk_amount = 3 | |
framerate = 25 | |
duration = chunk_frames / framerate | |