Just tested it on Mac OS. works like a charm. Thanks!
*Shailendra* On Thu, Aug 16, 2012 at 8:26 PM, Hugo Léveillé <[email protected]> wrote: > something like that should get you started > > def openInExplorer(platform = sys.platform): > > > try: > s = nuke.selectedNode() > path = os.path.dirname(s.knob('file').value()) > except: > nuke.message('No read/write selected') > return > > if platform == 'darwin': > os.system('open %s' % path) > if platform == 'linux2': > os.system('nautilus %s' % path) > if platform == 'win32': > path = path.replace('/','\\') > os.system('explorer %s' % path) > > > On Thu, Aug 16, 2012, at 09:15, Shailendra Pandey wrote: > > Hi > > Could anyone point me how to setup a command to open directory in finder > for selected Read/write Node. > also would it be possible to have the same command to work on mac OS as > well as windows. > > > Cheers > Shailendra > *_______________________________________________* > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > > -- > Hugo Léveillé > TD Compositing, Vision Globale > [email protected] > > _______________________________________________ > 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
