pymel.core.general.createAttrPatterns

createAttrPatterns(*args, **kwargs)

Create a new instance of an attribute pattern given a pattern type (e.g. XML) and a string or data file containing the description of the attribute tree in the pattern’s format.

Flags:
Long name (short name) Argument Types Properties
patternDefinition (pd) unicode ../../../_images/create.gif
 

Hardcoded string containing the pattern definition, for simpler formats that don’t really need a separate file for definition.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

patternFile (pf) unicode ../../../_images/create.gif
 
File where the pattern information can be found
patternType (pt) unicode ../../../_images/create.gif
 
Name of the pattern definition type to use in creating this instance of the pattern.

Derived from mel command maya.cmds.createAttrPatterns

Example:

import pymel.core as pm

import maya.cmds as cmds
pm.createAttrPatterns( patternType="xmlPattern", patternFile="patterns/patternFile.xml" )
// Result: [myXMLPattern] //

Previous topic

pymel.core.general.copyAttr

Next topic

pymel.core.general.createDisplayLayer

Core

Core Modules

Other Modules

This Page