| Item | Quantity | Price |
|---|
| Your cart is empty. Check out our collection of 3d models! |
Prices in:
Clear Cart
For some reason I could only get the channels to hide if I specifically named each rotation axis. Bug?
| LockRotate | |
1 | def LockRotate(): |
my guess is that "rotate" is just a parent attribute, it doesn't contain any data itself - it is simply the container for "rotateX", "rotateY" and "rotateZ".
Since the channel box is displaying the individual attributes - X, Y and Z - it makes sense you would have to explicitly hide each one.
Hello, I'm trying to add an option to turn off attributes in my channel box to a python script. I think i'm doing it correctly, but it doesn't seem to work. It locks them, but does not hide them
this is the script i'm working with. I checked python documentation and it looks like 'cb = false' and 'keyable = 'false' are what are supposed to turn off the visibility in the channel box, but it doesn't do it.
def lockRotate():
selected = cmds.ls(sl = True)[0]
cmds.setAttr (str(selected)+'.rotate',keyable = False, cb = False, lock = True)
lockRotate():
Any help would be appreciated, thanks.