Adding a Gizmo Icon
Why have a normal gizmo when you can spice it up with a flashy icon that shows up in your GUI? Just add this line to your .gizmo file, as the first line in your gizmo.
1 2 |
Gizmo { icon /the/location/of/your/gizmoimage.png |
The .png file should be manageable, I use an image size of 90x66 pixels, and set up the image as a transparent .png file.
Comments
And since the icon is actually a knob you can use python to set it right inside Nuke using something like:
nuke.selectedNode()['icon'].setValue('Ripper.png')
You can also add icons present on the Nuke environment to any label in Nuke using @imagename.png
To confirm, when you do this, the alpha allows the image to be over the underlying tile colour, yes? As opposed to having transparent sections of the tile/icon?
Cheers
J
this did create an image next to the gizmo in the node graph every time the gizmo is loaded, what if you wanted to offset the position of the image loaded in or if you wanted to have it load more like as an empty button image in the gizmo itself?
Thank you!
RSS feed for comments to this post