Hi friends, Currently i'm learning python scripting. I got on idea to create a tool for my convenience.
idea is.... extracting a single frame using "FrameHold" function. I created below .py file with my knowledge. Cant make it work what i expect. My panel result (what ever value i given as a input ) will print on to the "FrameHold" "first_frame" field.
some one please help me to complete this script.
HTML Code:''' Created on 26-Feb-2012 @author: satheesh ''' import nuke def extractFrame(): ef = nuke.Panel("extractFrame", 200) ef.addSingleLineInput("frame:","") ef.addButton("cancel") ef.addButton("ok") result = ef.show() if result == 1: print "ok" else: print "canceled" def singleFrame(): fh = nuke.createNode("FrameHold") fh.setName('singleFrame') singleFrame() def mainFunc(): extractFrame() mainFunc()










