Skip to content

Instantly share code, notes, and snippets.

@julik
Created August 11, 2011 13:01
Show Gist options
  • Save julik/1139580 to your computer and use it in GitHub Desktop.
Save julik/1139580 to your computer and use it in GitHub Desktop.
Why the values are not retreived?
panel = nuke.Panel("Create")
panel.addSingleLineInput("start", int(nuke.root()["first_frame"].getValue()))
panel.addSingleLineInput("finish", int(nuke.root()["last_frame"].getValue()))
panel.addSingleLineInput("step", int(nuke.root().fps()))
panel.addButton("Create")
obscure_status_int = panel.show()
# The API called "get value of the field by providing it's UI label" earns the
# mark of the most fucked up disgusting crap engineering ever (tm)
start = panel.value("start")
finish = panel.value("finish")
istep = panel.value("step")
nuke.message(str([start, finish, istep]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment