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

Synopsis

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.

Return value

stringName of nodes created

Keywords

create, blinddata, type

Related

polyBlindData, polyQueryBlindData

Flags

dataType, longDataName, longNames, query, shortDataName, shortNames, typeId, typeNames
Long name (short name) Argument types Properties
dataType(dt) string createmultiuse
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 createmultiuse
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.
longNames(ln) boolean create
Specifies that for a query command the long attributes names be listed.
query(q) boolean create
Specifies that this is a special query type command.
shortDataName(sdn) string createmultiuse
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.
shortNames(sn) boolean create
Specifies that for a query command the short attribute names be listed.
typeId(id) int create
Specifies the typeId of the BlindData type being created.
typeNames(tn) boolean create
Specifies that for a query command the data types be listed.

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

# 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 )