<bone>.lock

This will lock the bone, preventing animations from affecting it

 

<bone>.lock(
    recurse = 0    

)

 

recurse = 0

If this value is 1 then all bones underneath this bone will also be locked.


Remarks

When you want to manually translate or rotate a bone you must lock it first. This will prevent any avatar animations from affecting the bone.

Return Value

None

Example

head = avatar.getbone('skel_Head')
head.lock()
head.setEuler(45,0,0)

See also

<bone>.unlock