Just to put this out there for posterity, it turns out my memory wasn’t quite 
right; you actually need to set the script context to the nested gizmo itself.

In a simple case of:

root
  Group1
    MyGizmo1


You could use:

with gizmo:
    gizmo.makeGroup()


or call through to TCL:

nuke.tcl('in %s {copy_gizmo_to_group %s}' % (gizmo.fullName(), gizmo.name()))


-Nathan
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to