Page 1 of 1

defining controls as an object

Posted: Tue Jan 19, 2016 4:03 pm
by rombick
i Was thinking that it would be useful to have controls defined as class before passing them to the rig. what do you think?

would be something like that:

control = controls.SimpleControl():
control.set_shape('circle')
control.set_color('yellow')
control.set_size(1.2)

rig = rigs.FkCurveRig('sample', 'C')
rig.set_control(control)
rig.set_joint(...)
...
rig.create()

Re: defining controls as an object

Posted: Tue Jan 26, 2016 9:28 am
by louisVottero
I like this idea.