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

Synopsis

blindDataType [-dataType string] [-longDataName string] [-longNames] [-query] [-shortDataName string] [-shortNames] [-typeId int] [-typeNames]

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) create
Specifies that for a query command the long attributes names be listed.
-query(-q) 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) 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) 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 be used more than once in a command.

MEL examples


// To create a new blind data typeId with a floating point attribute
blindDataType -id 9001 -dt "float" -longDataName "bdFloat" -shortDataName "bdf";

// To create a Blind Data type with several attributes
blindDataType -id 9005 -dt "float" -longDataName "roughness" -shortDataName
"ruf" -dt "float" -longDataName "smoothness" -shortDataName "smo" -dt "int"
-longDataName "count" -shortDataName "cnt";

// To query if a type is already used
blindDataType -q -id 9001

// to query the type of a single attribute
blindDataType -q -id 9001 -tn -ldn "smoothness";

// to get the types and names for all attributes
blindDataType -q -id 9001 -tn;