Re: [Nuke-users] HTML Link in Menu

2017-02-01 Thread Igor Majdandzic
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 :

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
**
**
***
***
Mob: +61 418 631 079 
***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


--
--
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

Re: [Nuke-users] HTML Link in Menu

2017-02-01 Thread 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 :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_vfxcamdbnuke.menu("Nuke").addCommand("Utilities/VFX Camera Database", "www_vfxcamdb.www_vfxcamdb()”)My Python Script (Called www_vfxcamdb)import webbrowserdef 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/reel2015Mob:  +61 418 631 079IMDB: www.imdb.com/name/nm3719099/Instagram: @7secondstoblackInstagram: @durwood0781Skype:  darren.coombes81Twitter:  @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

Re: [Nuke-users] HTML Link in Menu

2017-02-01 Thread Igor Majdandzic
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 working..in my Menu.py….import www_vfxcamdbnuke.menu("Nuke").addCommand("Utilities/VFX Camera Database", "www_vfxcamdb.www_vfxcamdb()”)My Python Script (Called www_vfxcamdb)import webbrowserdef 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/reel2015Mob:  +61 418 631 079IMDB: www.imdb.com/name/nm3719099/Instagram: @7secondstoblackInstagram: @durwood0781Skype:  darren.coombes81Twitter:  @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

Re: [Nuke-users] HTML Link in Menu

2016-11-07 Thread Erik Johansson
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/;))
urls.append(("Weblinks/Tracksperanto - Convert Trackers",
"http://tracksperanto.guerilla-di.org/;))for title, url in urls:
nuke.menu('Nuke').addCommand(title,
"webbrowser.open('{url}')".format(url=url))

Easier to extend without having to create additional functions for each new
site.
​

On Mon, Nov 7, 2016 at 10:43 PM, Darren Coombes 
wrote:

> 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()")
> nuke.menu("Nuke").addCommand("Weblinks/Nukepedia",
> "www_links.openNukepedia()")
> nuke.menu("Nuke").addCommand("Weblinks/Tracksperanto - Convert Trackers",
> "www_links.openTracksperanto()”)
>
> *Python Script...*
> import webbrowser
>
> def openVfxcamdb():
>  webbrowser.open("http://vfxcamdb.com/;)
>
> def openDpreview():
>  webbrowser.open("http://dpreview.com;)
>
> def openNukepedia():
>  webbrowser.open("http://nukepedia.com;)
>
> def openTracksperanto():
>  webbrowser.open("http://tracksperanto.guerilla-di.org”)
>
>
>
>
> Thanks.
> Darren.
>
>
> Check out some of my work...
> *www.vimeo.com/darrencoombes/reel2015
> *
>
> *Mob:  +61 418 631 079 <+61%20418%20631%20079>*
> IMDB: www.imdb.com/name/nm3719099/
> *Instagram: @7secondstoblackInstagram: @durwood0781Skype:
>  darren.coombes81Twitter:  @durwood81*
>
> On 7 Nov 2016, at 8:36 pm, Howard Jones  wrote:
>
> 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 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
> *
>
> *Mob:  +61 418 631 079 <+61%20418%20631%20079>*
> IMDB: www.imdb.com/name/nm3719099/
> *Instagram: @7secondstoblackInstagram: @durwood0781Skype:
>  darren.coombes81Twitter:  @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
>
>
>
> *A X I S V F X*
> The Bottle Yard Studios
> Whitchurch Lane
> Bristol BS14 0BH
>
>
> axis-vfx.com
> ___
> 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
>
>
>
> ___
> 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
>



-- 


*Erik Johansson**Pipeline TD*


*Goodbye Kansas / Fido / Bläck*Rosenlundsgatan 40
118 53 Stockholm, Sweden
www.goodbyekansas.se
___
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

Re: [Nuke-users] HTML Link in Menu

2016-11-07 Thread Darren Coombes
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()")
nuke.menu("Nuke").addCommand("Weblinks/Nukepedia", "www_links.openNukepedia()")
nuke.menu("Nuke").addCommand("Weblinks/Tracksperanto - Convert Trackers", 
"www_links.openTracksperanto()”)

Python Script...
import webbrowser

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

def openDpreview():
 webbrowser.open("http://dpreview.com;)

def openNukepedia():
 webbrowser.open("http://nukepedia.com;)

def openTracksperanto():
 webbrowser.open("http://tracksperanto.guerilla-di.org”)




Thanks.
Darren.


Check out some of my work...
www.vimeo.com/darrencoombes/reel2015 


Mob:  +61 418 631 079 
IMDB: www.imdb.com/name/nm3719099/
Instagram: @7secondstoblack
Instagram: @durwood0781
Skype:  darren.coombes81
Twitter:  @durwood81

> On 7 Nov 2016, at 8:36 pm, Howard Jones  wrote:
> 
> 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 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 
>> 
>> 
>> Mob:  +61 418 631 079 
>> 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 
>> 
> 
> 
> A X I S V F X
> The Bottle Yard Studios
> Whitchurch Lane
> Bristol BS14 0BH
>  
> axis-vfx.com 
> ___
> 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

___
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

Re: [Nuke-users] HTML Link in Menu

2016-11-07 Thread Howard Jones
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 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
> 
> Mob:  +61 418 631 079
> 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

-- 



*A X I S V F X*

The Bottle Yard Studios

Whitchurch Lane

Bristol BS14 0BH

 

axis-vfx.com
___
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

[Nuke-users] HTML Link in Menu

2016-11-07 Thread 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 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 


Mob:  +61 418 631 079 
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