or this will do it without re-writing anything:
menu = nuke.menu('Nodes')
item = menu.findItem('Image/Read')
item.setScript('nuke.tcl("SmartRead")')
On 7/06/14 3:41 pm, Frank Rueter|OHUfx wrote:
does Frederik's script work for you? http://www.nukepedia.com/python/misc/readfromwrite On 7/06/14 3:30 pm, Frank Rueter|OHUfx wrote:yeah, yeah, I get the hint :-D try nuke.tcl() in the meantime On 6/06/14 11:54 pm, Howard Jones wrote:Hi I've just realised I've never doen this before but... How do I load a TCL script through menu.py? Basically I want to add a shortcut to load Frank's SmartRead tool which after umpteen years I still haven't made a python version. So can I load this through menu.py? (Too many years of typing 'x' then 'SmartRead'.) Many thanks Howard _______________________________________________ Nuke-users mailing list [email protected],http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users--ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing <http://ohufx.com/index.php/vfx-compositing> | *workflow customisation and consulting <http://ohufx.com/index.php/vfx-customising>* *_______________________________________________ Nuke-users mailing list [email protected],http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users--ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing <http://ohufx.com/index.php/vfx-compositing> | *workflow customisation and consulting <http://ohufx.com/index.php/vfx-customising>* *_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing <http://ohufx.com/index.php/vfx-compositing> | *workflow customisation and consulting <http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
