Message 1 of 3
Not applicable
12-13-2017
11:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey Guys:
a noob question,
I want a attribute be hidden from the UI(attribute editor); but It did not work!
import maya.OpenMaya as om
msel = om.MSelectionList()
om.MGlobal.getActiveSelectionList(msel)
mobj = om.MObject()
mDagPth = om.MDagPath()
msel.getDependNode(0,mobj)
mFnDep = om.MFnDependencyNode(mobj)
mAttrObj = mFnDep.attribute('visibility')
mFnAttr = om.MFnAttribute(mAttrObj)
mFnAttr.isHidden()
mFnAttr.setHidden(1)
but the attribute still displayed in the Attribute Editor? somebody help me!
Solved! Go to Solution.