Ineed a little problem here, it is a really simple code: I need to do a substraction between CV2 Y value and CV Y (both are XY_KNOBS)value and that result will be the value of another knob. ALso, how can I set an expression of XY_KNOBS translation as well, thanks!!!
import math def conversion(): #setCamera Parameters st = nuke.nodes.NoOp(name='LE RULERo') IS = nuke.Int_Knob( "ctrl","RESULT_PIXEL" ) CV = nuke.XY_Knob( "ctrl2","RIGHTPOS" ) CV2 = nuke.XY_Knob( "ctrl3","LEFTPOS" ) st.addKnob(IS) st.addKnob(CV) st.addKnob(CV2) IS.setValue(RESULT OF SUBSTRACTION OF CV.Y AND CV2.Y) CV.setValue(1132,0) CV.setValue(546,1) CV2.setValue(1356,0) CV2.setValue(546,1) I cant make this thing to work, thank ytou
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
