I plaied a bit with setTransformLockFlags function and noticed some problems. In the folowing code node stands for my node. Wile this worcks well:
setTransformLockFlags node #all
also this:
setTransformLockFlags node #{1}
or this:
setTransformLockFlags node #{2}
Other bitArray walues not worcking properlly or even not worck at all. For example if I use this code:
setTransformLockFlags node #{6}
and after that try to set value for Z rotation of the node, the value is used for X rotation istead. If I use this code:
setTransformLockFlags node #{7}
or this:
setTransformLockFlags node #{8}
it has no effect at all.