Hello. When I use MPlug.setKeyable() the attribute is hiden as expected. 
You can try this to check it: 

jnt = cmds.joint()
cmds.addAttr(jnt, ln="foo", at="float", k=True)
mslist = OpenMaya.MSelectionList()
mslist.add(jnt)
mobj = OpenMaya.MObject()
mslist.getDependNode(0, mobj)
mfnDepNode = OpenMaya.MFnDependencyNode(mobj)
mplug = mfnDepNode.findPlug("foo")
mplug.setKeyable(False)


the problem that I am having is that if you save the scene, and open it 
again, the attribute is visible again. His happens if you do that throught 
mplug. With cmds it is fine.
Is that a bug or is there something else that needs to be done?

Cheers,

R

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/a4dd93d0-dd62-4e80-9680-424925d22332n%40googlegroups.com.

Reply via email to