Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.

Synopsis

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.

Return value

string Name(s) of deleted pattern(s)

Keywords

attribute, pattern

Related

addAttr, addExtension, applyAttrPattern, createAttrPatterns, listAttrPatterns

Flags

allPatterns, patternName, patternType
Long name (short name) Argument types Properties
allPatterns(all) boolean create
If specified it means delete all known attribute patterns.
patternName(pn) string create
The name of the pattern to be deleted.
patternType(pt) string create
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.

Python examples

import maya.cmds as cmds

import maya.cmds as cmds
cmds.deleteAttrPattern( patternType="xmlPattern" )
// Result: [myXMLPattern, myOtherXMLPattern] //
cmds.deleteAttrPattern( patternName="myJSONPattern" )
// Result: myJSONPattern //