Hi Jesse,
thanks for the answer. Sorry my mail was a bit messy. I do call a python function in the write nodes file knob, with [python writeFunction.call()]. ![]() This gets called many times, a bit like the knobChanged callback... so I thought this is a bad thing. And we are having freezes with it too. Now, I changed it into a callback. the callback code looks like this: def writeNodeUpdates() try: write = nuke.toNode('Special Write') except: nuke.tprint('no special write found') else: output = nameGenerator() write['file'].setValue(output) I was interested which callback I should use. 1.onScriptSave 2.autolabel 3.updateUI 4.knobChanged (suggested by you) I could tie it to knobChange too, but that puts me a bit where I started. It gets evaluated on every change... For the moment I put it on onScriptSave. As this is also quite logical, as one cannot render without saving first. And having ctrl+s as the "setter" is also nice.... Good to know you used the knobChanged callback for this. Thanks for the input Johannes Am 1/24/14 19:19 PM, schrieb Jesse Kretschmer:
-- STUDIO RAKETE GmbH Johannes Hezer, Compositing TD & Stereoscopic SV Schomburgstr. 120 D - 22767 Hamburg j.he...@studiorakete.de Tel:+49 (0)40 - 380 375 69 - 0 Fax:+49 (0)40 - 380 375 69 - 99 ------------------------------------------------------ Pflichtangaben laut Handelsgesetzbuch und GmbH-Gesetz: STUDIO RAKETE GmbH Schomburgstr. 120 D - 22767 Hamburg www.studiorakete.de / i...@studiorakete.de Geschaeftsfuehrer: Jana Bohl Die Gesellschaft ist eingetragen im Handelregister des Amtsgerichts Hamburg unter der Nummer HR B 95660 USt.-ID Nr.: DE 245787817 ____ ESET 8964 (20131025) ____ The message was checked by ESET Mail Security. |
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python