Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- readNode = nuke.createNode('Read')
- reformatNode = nuke.createNode('Reformat')
- writeNode = nuke.createNode('Write')
- input = '/Users/Wouter/Desktop/'
- output = '/Users/Wouter/Desktop/'
- path = listdir(input)[0] + '/beauty'
- inputFile = listdir(path)[0]
- inputFile.split('_')
- splittedFilename = list.split('_')
- seqscene = splittedFilename[0] + '_' + splittedFilename[1]
- if not outputFolderPath.endswith(os.sep):
- outputFolderPath += os.sep
- readNode.knob('file').setValue(input)
- readNode.knob('on_error').setValue('nearest frame')
- reformatNode.knob('type').setValue('scale')
- reformatNode.knob('scale').setValue(.5)
- writeNode.knob('file_type').setValue('png')
- writeNode.knob('colorspace').setValue('sRGB')
- writeNode.knob('file').setValue(output + seqscene + '_thumbnail.png')
- nuke.execute(writeNode.name(), start=1, end=1, incr=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement