Created
August 11, 2011 13:01
-
-
Save julik/1139580 to your computer and use it in GitHub Desktop.
Why the values are not retreived?
This file contains hidden or 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
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