Hello -
Someone showed me a neat trick with a node to re-define the postage
stamp. The hardcoded values of 80 and 45 are the width and height of my
icon image, but they can be whatever values it takes to make the image
fit in the node:
set cut_paste_input [stack 0]
version 6.2 v1
Read {
inputs 0
file /u/jrab/images/tdreadpostageTestL.0101.jpg
format "109 56 0 0 109 56 1 postage_stamp"
origset true
name Read2
label "<center><img
source=\"/u/jrab/images/tdreadpostageTestL.0101.jpg\" width=\[python
\{80*nuke.zoom()\}] height=\[python \{45*nuke.zoom()\}]></center>"
selected true
xpos -897
ypos -319
}
I'm wondering if there is a way to update the node when you zoom in the
dag, so it refreshes and the pseudo postage stamp gets the values? Drop
a couple in a script with good files at different zoom levels, pretty
neat. But basically, it doesn't update unless you change a knob. I tried
an updateUI callback on the node, but couldn't get it to work. Yeah, it
would probably be dog slow with a bunch of nodes, but I'm curious...
thanks
JRAB
_______________________________________________
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