To simply execute the knob, you can find it the old-fashioned way.
for i in range(group.numKnobs()):
k = group.knob(i)
if k.label() == 'export as gizmo...':
k.execute()
break
As far as being able to hijack the button’s command, I don’t think there’s any
way to do that. While the Gizmo’s 'copy to group' button runs a TCL proc, I
don’t think the export command is written in TCL.
-Nathan
From: Marc Gutowski
Sent: Tuesday, June 26, 2012 6:53 AM
To: [email protected]
Subject: [Nuke-python] Group Node,Export as Gizmos - execute() or Python Routine
Hey all,
i want to automate the exporting of a gizmo from a group,
and currently i wonder how to execute a knob without a name.
by printing all knobs with values of a group node,
it seems so, that the "export as gizmo" button is unnamed.
please help me, to figure out what function is called on button press,
and where to find this one so that i can customize and
run my own one per event. ....
thanks in advance.
Marc
--------------------------------------------------------------------------------
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python