Depending on the amount of control you need over the layout of your
images, or the amount of interaction you want to have with them, you
could probably just take advantage of the ability to use some html
tags in knob labels:

n = nuke.createNode('NoOp')
k = nuke.PyScript_Knob('imgButton', '<img
src=":qrc/images/Lock.png">') # Replace with your own image path
n.addKnob(k)

You could also force your thumbnails to be of a specific size:

n = nuke.createNode('NoOp')
k = nuke.PyScript_Knob('imgButton', '<img src=":qrc/images/Lock.png"
width = "120" height = "90">')
n.addKnob(k)

But now that 6.3 is out, if you're familiar with PyQt you could go a
lot further by creating your own dialogs/widgets and attaching them to
a panel or a custom knob. Have a look at the webBrowser example in
6.3.

Hope that helps.

Cheers,
Ivan

On Sat, Jul 23, 2011 at 1:50 PM, robingraham
<[email protected]> wrote:
> I have a group that finds image sequences and makes buttons to create read
> nodes. Is there anyway in nuke to add a thumbnail or image to a panel? I
> have yet to really see someone do this.
> _______________________________________________
> 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

Reply via email to