In 7.0+, you can use nuke.zoomToFitSelected(). In previous versions, I’m not sure there’s a reliable way to duplicate the same behavior, since I think it would be pretty tough to grab the geometry of the DAG pane to figure out the zoom level needed to fit the selection.
-Nathan From: John RA Benson Sent: Tuesday, March 05, 2013 10:53 AM To: Nuke Python discussion Subject: [Nuke-python] python functions for hotkeys? Hey there - is there a list of python functions that duplicate hotkeys? I'm looking to auto clean up the node graph with selecting all and "l" then "f" aha - should check the script output when I do it... ok: nuke.selectAll() _autoplace() but still looking for "f" thanks JRAB -------------------------------------------------------------------------------- _______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python