ahhh, the nuke.setMessage() definitely worked and launched the webpage
for my, i'm trying to add it to the ProgressTask but doesn't seem to
be working, here's what i'm doing:
pt = nuke.ProgressTask("<a href='http://www.google.com/'>Google!</a>")
pt.setMessage("<a href='http://www.google.com/'>Google!</a>")
neither of the google links seem to launch the web browser but it at
least makes it copy/pasteable from the ProgressTask :)
On Wed, Feb 15, 2012 at 1:43 PM, Howard Jones <[email protected]> wrote:
> This was modified from a very old thread (formatting probably screwed)
>
> Howard
>
> def googleSearch():
>
> whichGoogle = "Images Web Maps"
>
> panel = nuke.Panel ( "GOOGLE",400)
> panel.addSingleLineInput('search Google:','')
> panel.addEnumerationPulldown('for what', whichGoogle)
> result=panel.show()
>
> searchString = panel.value('search Google:')
> forWhat= panel.value('for what')
> searchString=searchString.replace(' ','+')
>
> if searchString:
> if forWhat == 'Images':
>
> nukescripts.start('http://images.google.com/images?hl=en&lr=&q=%s&btnG=Search'
> \
> % (searchString))
> if forWhat == 'Web':
>
> nukescripts.start('http://www.google.com/search?hl=en&lr=&q=%s&btnG=Search'
> \
> % (searchString))
> if forWhat == 'Maps':
>
> nukescripts.start('http://maps.google.com/maps?hl=en&lr=&q=%s&btnG=Search' \
> % (searchString))
>
> ________________________________
> From: Hugo Léveillé <[email protected]>
> To: Nuke Python discussion <[email protected]>
> Sent: Wednesday, 15 February 2012, 12:50
> Subject: Re: [Nuke-python] html test links
>
> something like this ?
>
> nukescripts.start('http://www.google.com')
>
> or this ?
>
> nuke.message("<a href='http://www.google.com/'>Google!</a>")
>
>
>
>
> On Wed, Feb 15, 2012, at 09:51, Josh Imbruglia wrote:
>> hi everybody,
>>
>> is there any way to have an html 'a href' link launch a web browser
>> from nuke? is there an environment variable or something hidden i can
>> set such that this is the case? would be really handy.
>>
>> thanks,
>> josh
>> _______________________________________________
>> 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
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python