Go to: Synopsis. Return value. Keywords.
Related. Flags.
Python examples.
deleteAttrPattern([allPatterns=boolean], [patternName=string], [patternType=string])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
deleteAttrPattern is undoable, NOT queryable, and NOT
editable.
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.
| string | Name(s) of deleted pattern(s) | 
attribute, pattern
addAttr, addExtension, applyAttrPattern, createAttrPatterns, listAttrPatterns
allPatterns, patternName, patternType
| Long name (short name) | Argument types | Properties | 
| allPatterns(all) | boolean |  | 
| 
|  | If specified it means delete all known attribute patterns. |  | 
| patternName(pn) | string |  | 
| 
|  | The name of the pattern to be deleted. |  | 
| patternType(pt) | string |  | 
| 
|  | Delete all patterns of the given type. |  | 
|  Flag can appear in Create mode of
command |  Flag can appear in Edit mode of command | 
|  Flag can appear in Query mode of command |  Flag can have multiple arguments, passed
either as a tuple or a list. | 
import maya.cmds as cmds
import maya.cmds as cmds
cmds.deleteAttrPattern( patternType="xmlPattern" )
// Result: [myXMLPattern, myOtherXMLPattern] //
cmds.deleteAttrPattern( patternName="myJSONPattern" )
// Result: myJSONPattern //