[Closed] Need help locking objects with script
Hi there,
I’m setting up a few character rigs for animation and I’ve found that i’m constantly going to the hierachy panel to lock X,Y,Z Move Scale or Rotation. For this kind of annoying robotic task I’d usually come up with a quick script to automate but these things don’t seem to show up in the listener window? Does this mean that they aren’t accessible through scrtipting, If they are could someone please tell me how?
Thanks – Pete
You do it thusly:
setTransformLockFlags selection #none -- removes all locks
setTransformLockFlags selection #all -- adds all locks
setTransformLockFlags selection #{on,on,on,off,off,off,off,off,off} -- sets on/off with bittArray
#{pos_x, pos_x, pos_z, rot_x, rot_y, rot_z, scale_x, scale_y, scale_z)
Is there a way to do this on a sub-object/vertex/element level?
I’m setting up some blendshapes and trying to use soft selections without affecting particular verts.
–magilla
Thanks you rock. I’m not much of a script master by any means and if it doesn’t show up in the listener I’m kinda screwed.
I did find a cool character setup script at http://paulneale.com/ that had a section for locking things on mass (there are heaps of other cool character setuip scripts here actually).
Thanks for the help – pete