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
search = str(nuke.getInput("select items with this in their name:")) | |
for node in nuke.selectedNodes("ReadGeo2"): | |
scene_view = node['scene_view'] | |
all_items = scene_view.getAllItems() | |
scene_view.setSelectedItems([item for item in all_items if item.find(search) >= 0]) |
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
/* | |
Author: Mitchell Kehn | |
*/ | |
kernel DotMatrixDisplay : ImageComputationKernel <ePixelWise> | |
{ | |
Image <eRead, eAccessRandom, eEdgeClamped> src; | |
Image <eRead, eAccessRandom, eEdgeNone> tex; | |
Image <eWrite> dst; | |
local: |
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
from fuzzywuzzy import fuzz | |
import re | |
def partialNumberyRatio(stringA, stringB): | |
stringA = stringA.lower() | |
stringB = stringB.lower() | |
digitsA = "".join(sorted([char for char in stringA if char.isdigit()])) | |
digitsB = "".join(sorted([char for char in stringB if char.isdigit()])) | |
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
node = nuke.thisNode() | |
nodeName = "root." + node.fullName() | |
parentName = ".".join(nodeName.split(".")[:-1]) | |
parent = nuke.toNode(parentName) |
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
node = nuke.toNode("myNode1") | |
[sel.setSelected(False) for sel in nuke.selectedNodes()] | |
node.setSelected(True) | |
nuke.nodeCopy("%clipboard%") | |
node.setSelected(False) | |
nuke.nodePaste("%clipboard%") | |
newNode = nuke.selectedNode() |
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
""" | |
Export a nuke tracker node to an ACII file that can be read by PFTrack | |
""" | |
from math import sqrt | |
HEADER = """\ | |
# "Name" | |
# clipNumber | |
# frameCount | |
# frame, xpos, ypos, similarity |
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
print hex(nuke.selectedNode().opHashes()[0]) |
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 json | |
import nuke | |
def Matrix4toList(M): | |
mVals = [] | |
for i in range(len(M)): | |
mVals.append(M[i]) | |
return mVals | |
# --- load file --- |
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
""" | |
Copy the chosen transform attributes from the selected tracker node | |
onto the transform controls of the selected elements in roto tree | |
""" | |
import nukescripts | |
import nuke | |
from PySide2 import QtWidgets, QtCore, QtGui | |
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
from altpipe.nuke.utils import replaceReadGeoAbcFilepath | |
for readgeo in nuke.selectedNodes("ReadGeo2"): | |
replaceReadGeoAbcFilepath(readgeo, readgeo["file"].getValue().replace("sh010", "sh020")) | |
OlderNewer