Hi Can anyone tell me how to create an Array_Knob which behaves like an Int_Knob ? I've noticed that if you make an 'Integer Knob' on a node through 'Manage User Knobs...' what you actually get back is an Array_Knob, with settings to behave like an int.
But if in python you create an Int_Knob and attach it to a node, you get what python calls an Int_Knob, until that is you copy/paste or save/load the node - at which point it becomes an Array_Knob too. This has caused a minor problem here because Int_Knob get/set methods work on ints, while Array_Knob works with floats. Imagine a knob-by-knob copy of values from a duplicated node back to its original before the script has been saved - when you get to an Int_Knob you get an error: TypeError: integer argument expected, got float Is Int_Knob deprecated? I couldnt see anything in the docs about that. thanks -- colin alway
_______________________________________________ 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