Ok, keep the brackets, but dont execute the method in the script. That should do the trick.
Definitive answer!

Am 01.02.2017 um 19:24 schrieb Igor Majdandzic:
And don't execute the method in the script itself. Then maybe you need the brackets.
Tired and in the car...

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...
    **www.vimeo.com/darrencoombes/reel2015
    <http://www.vimeo.com/darrencoombes/reel2015>**
    **
    ***
    ***
    ****Mob: +61 418 631 079 <tel:+61%20418%20631%20079>****
    ***IMDB: www.imdb.com/name/nm3719099/
    <http://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

--
--------------
Igor Majdandzic
Compositing Supervisor/TD

@Chimney Frankfurt

_______________________________________________
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