Hi Lucien, The second argument should be a pointer to the first element in a float array (of size 3).
Here's an example: Declare: float pos[3]; Initialize: pos[0] = pos[1] = pos[2] = 0.0; Use in Knob: XYZ_knob(f, pos, "myXYZ_Knob"); For convenience, you could also use a Vector3, since the [] operator in a Vector3 returns a ref to a float array. Vector3 pos; pos.set(0.0, 0.0, 0.0); XYZ_knob(f, &pos[0], "myXYZ_Knob"); Hope that helps On Tue, Oct 8, 2013 at 3:02 PM, Lucien Fostier <lucienfost...@gmail.com>wrote: > Hey guys, > > Im confused on how to create a XYZ_knob. > > What is the second argument, this pointer to a float doing here? > > May someone provide an example of its use, like how to declare the > variable associated with it, how you initialiase the knob and how you acess > the x,y,z data set by the user. > > Thanks > > cheers > > Lucien > > Envoyé de mon iPhone_______________________________________________ > Nuke-dev mailing list > Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev >
_______________________________________________ Nuke-dev mailing list Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev