Go to: Synopsis. Return value. Keywords.
Related. Flags.
Python examples.
blindDataType([dataType=string], [longDataName=string], [longNames=boolean], [query=boolean], [shortDataName=string], [shortNames=boolean], [typeId=int], [typeNames=boolean])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
blindDataType is undoable, NOT queryable, and NOT
editable.
This command creates a blind data type, which is represented by a
blindDataTemplate node in the DG. A blind data type can have one or
more attributes. On the command line, the attributes should be
ordered by type for best memory utilization, largest first: string,
binary, double, float, int, and finally boolean. Once a blind data
type is created, blind data of that type may be assigned using the
polyBlindData command. Note that as well as polygon components,
blind data may be assigned to objects and to NURBS patches. A blind
data type may not be modified after it is created: in order to do
so it must be deleted and recreated. Any existing blind data of
that type would also need to be deleted and recreated. When used
with the query flag, this command will return information about the
attributes of the specified blind data type.
string |
Name of nodes created |
create, blinddata, type
polyBlindData, polyQueryBlindData
dataType, longDataName, longNames, query,
shortDataName, shortNames, typeId,
typeNames
Long name (short name) |
Argument types |
Properties |
query(q) |
boolean |
 |
|
Specifies that this is a special query type command. |
|
longNames(ln) |
boolean |
 |
|
Specifies that for a query command the long attributes names be
listed. |
|
shortNames(sn) |
boolean |
 |
|
Specifies that for a query command the short attribute names be
listed. |
|
typeNames(tn) |
boolean |
 |
|
Specifies that for a query command the data types be
listed. |
|
typeId(id) |
int |
 |
|
Specifies the typeId of the BlindData type being created. |
|
dataType(dt) |
string |
  |
|
Specifies the dataTypes that are part of BlindData node being
created. Allowable strings are "int", "float", "double", "string",
"boolean" and "binary". Must be used togeter with the -ldn and -sdn
flags to specify each attribute. |
|
longDataName(ldn) |
string |
  |
|
Specifies the long names of the datas that are part of
BlindData node being created. Must be used togeter with the -dt and
-sdn flags to specify each attribute. |
|
shortDataName(sdn) |
string |
  |
|
Specifies the short names of the data that are part of
BlindData node being created. Must be used togeter with the -dt and
-ldn flags to specify each attribute. |
|
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
# To create a new blind data typeId with a floating point attribute
cmds.blindDataType( id=9001, dt='float', longDataName='bdFloat', shortDataName='bdf' )
# To create a Blind Data type with several attributes
cmds.blindDataType( 'ruf', '-dt', 'float', '-longDataName', 'smoothness', '-shortDataName', 'smo', '-dt', 'int' id=9005, dt='float', longDataName='roughness', shortDataName='', longDataName='count', shortDataName='cnt' )
# To query if a type is already used
cmds.blindDataType( 9001
# to query the type of a single attribute
'blindDataType', '-q', '-id', 9001, '-tn', '-ldn', 'smoothness', query=True, id=True )
# to get the types and names for all attributes
cmds.blindDataType( 9001, '-tn', query=True, id=True )