<bone>.unlock

This will unlock the bone, preventing manual tranformations from affecting it

 

<bone>.unlock(
    recurse = 0    

)

 

recurse = 0

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


Remarks

Unlocking a bone allows avatar animations to affect the bone. Manual translations and rotations of this bone will be ignored.

Return Value

None

Example

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

See also

<bone>.lock