Gizmos

Adding a Gizmo Icon

Written by Aruna Inversin on .

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.

Pimping DigitalGypsy

Comments   

 
+4 # Diogo Girondi 2010-08-30 13:03
As long the gizmo is inside the Nuke environment (i.e. some folder sourced by Nuke) you can simply use the image name without the file path.

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
 
 
# Jeff Ranasinghe 2015-07-19 02:21
Thanks for sharing this info.

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
 
 
-1 # maya kaaran 2013-07-04 05:13
nice
 
 
# Misho Ristov 2017-03-20 16:38
can you offset the position?
 

You have no rights to post comments

We have 2269 guests and 130 members online