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
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 :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
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 :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
Just a quick suggestion. I don’t really see the need for so many functions.
import webbrowser
urls = []
urls.append(("Weblinks/VFX Camera Database", "http://vfxcamdb.com/;))
urls.append(("Weblinks/DP Review", "http://dpreview.com/;))
urls.append(("Weblinks/Nukepedia", "http://nukepedia.com/;))
Thanks Howard, I got it to work. Changed a few things..
Menu Py…
import www_links
nuke.menu("Nuke").addCommand("Weblinks/VFX Camera Database",
"www_links.openVfxcamdb()")
nuke.menu("Nuke").addCommand("Weblinks/DP Review", "www_links.openDpreview()")
I think I'm right in saying lose the last line in
> www_vfxcamdb
Howard
> On 7 Nov 2016, at 9:11 am, Darren Coombes wrote:
>
> 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
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