control joint not working

im trying to make the bone of a model move proceeduraly.this is code

control = hand.controlJoint(None,“modelroot”,“bone3”)
hand.loop(“move”)
control.setP(2)
control.setH(2)
control.setR(2)

i keep getting this error

'‘noneType’ object has no attribute ‘setP’

If you have a NoneType error, it probably means that the model/joint is not found.
The problem is in this case, you spelled it “modelroot” instead of “modelRoot”.
Partnames are case sensitive.

Hint: if you call setHpr you can set the H, P and R at the same time, thats easier.

This is the correct code:

control = hand.controlJoint(None,"modelRoot","bone3")
hand.loop("move")
control.setHpr(2,2,2)

thanks very much
it worked as i had wanted
i found out that the bone name is bone.002
i guess i should be more carefull with naming and spelling.