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.