Nuke tmp
Jump to navigation
Jump to search
Maya tmp Scripts
Nuke - Extract some images from Read
nodes = nuke.selectedNodes() for node in nodes: if node.Class() == 'Read': oPath = node['file'].value() first = node['first'].value() last = node['last'].value() oFrameHold = nuke.allNodes('FrameHold') channels = node.channels() layers = list( set('1234') ) layers.sort() readPath = node['file'].evaluate() readPath = os.path.splitext(readPath)[0] print(readPath) if 'rgba' in layers: layers.remove('rgba') for n in layers: shuffleNode = nuke.nodes.FrameHold(inputs=[node]) shuffleNode['first_frame'].setValue(last/2)