Hello,
I want to place labels on my nodes, like a file name placed on read or
write nodes.
I added a knob 'MyLabel' to the node and defined MyAutoLabel function,
like this:
def MyAutoLabel() :
node = nuke.thisNode();
name = node.name()
label = node['label'].value()
info = node['MyLabel'].value() if 'MyLabel' in node.knobs() else ''
resList = [x for x in [name, info, label] if x]
return '\n'.join(resList)
Then, I added Nuke procedure call:
nuke.addAutolabel(MyAutoLabel,nodeClass='MyPlugin')
This methods works fine, and the label changes as user changes some
controls of the node.
But I want to make the labels to be depending on current frame (my
plugin can display different sort of data depending on frame).
Plugin decides in _validate, what sort of data should be used for this
frame. So, I try to change node['MyLabel'] in _validate. But this has
no effect, node label stay unchangeble.
Do you have any idea, how to make NUKE redraw node and it's label
after frame changes?
Thank you.
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev