After a while the list of attribute patterns could become cluttered. This command provides a way to remove patterns from memory so that only the ones of interest will show.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
allPatterns (all) | bool | ||
|
|||
patternName (pn) | unicode | ||
|
|||
patternType (pt) | unicode | ||
|
Derived from mel command maya.cmds.deleteAttrPattern
Example:
import pymel.core as pm
import maya.cmds as cmds
import maya.cmds as cmds
pm.deleteAttrPattern( patternType="xmlPattern" )
// Result: [myXMLPattern, myOtherXMLPattern] //
pm.deleteAttrPattern( patternName="myJSONPattern" )
// Result: myJSONPattern //