Just leave out the brackets
"www_vfxcamdb.www_vfxcamdb” so it does not get executed.

Am 07.11.2016 10:11 vorm. schrieb Darren Coombes <darren.coom...@me.com>:
How would i Add a menu, and in that, have a link to a website listed, so when you select the webpage in the menu, it opens.

Ive kind of got it working..

in my Menu.py….
import www_vfxcamdb
nuke.menu("Nuke").addCommand("Utilities/VFX Camera Database", "www_vfxcamdb.www_vfxcamdb()”)

My Python Script (Called www_vfxcamdb)
import webbrowser

def openWebpage():
  webbrowser.open("http://vfxcamdb.com/")

openWebpage()



But what is happening is it’s opening the webpage whenever nuke starts up.
Only want the webpage to open when you select it in menu.
 Any help?

Check out some of my work...

IMDB: www.imdb.com/name/nm3719099/
Instagram: @7secondstoblack
Instagram: @durwood0781
Skype:  darren.coombes81
Twitter:  @durwood81


_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to