Go to: Synopsis. Return value. Keywords. Flags. MEL examples.
polyColorBlindData [-aboveMaxColorBlue float] [-aboveMaxColorGreen float] [-aboveMaxColorRed float] [-attrName string] [-belowMinColorBlue float] [-belowMinColorGreen float] [-belowMinColorRed float] [-clashColorBlue float] [-clashColorGreen float] [-clashColorRed float] [-colorBlue float] [-colorGreen float] [-colorRed float] [-dataType string] [-enableFalseColor boolean] [-maxColorBlue float] [-maxColorGreen float] [-maxColorRed float] [-maxValue float] [-minColorBlue float] [-minColorGreen float] [-minColorRed float] [-minValue float] [-mode int] [-noColorBlue float] [-noColorGreen float] [-noColorRed float] [-numIdTypes int] [-queryMode] [-typeId int] [-useMax boolean] [-useMin boolean] [-value string]
polyColorBlindData is NOT undoable, NOT queryable, and NOT editable.
This command applies false color to the selected polygonal components and objects, depending on whether or not blind data exists for the selected components (or, in the case of poly objects, dynamic attributes), and, depending on the color mode indicated, what the values are. It is possible to color objects based on whether or not the data exists, if the data matches a specific value or range of values, or grayscale color the data according to what the actual value is in relation to the specified min and max. This command also has a query mode in which the components and/or objects are returned in a string array to allow for selection filtering.string[] |
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-aboveMaxColorBlue(-amb)
|
float
|
|||
|
||||
-aboveMaxColorGreen(-amg)
|
float
|
|||
|
||||
-aboveMaxColorRed(-amr)
|
float
|
|||
|
||||
-attrName(-n)
|
string
|
|||
|
||||
-belowMinColorBlue(-bmb)
|
float
|
|||
|
||||
-belowMinColorGreen(-bmg)
|
float
|
|||
|
||||
-belowMinColorRed(-bmr)
|
float
|
|||
|
||||
-clashColorBlue(-ccb)
|
float
|
|||
|
||||
-clashColorGreen(-ccg)
|
float
|
|||
|
||||
-clashColorRed(-ccr)
|
float
|
|||
|
||||
-colorBlue(-cb)
|
float
|
|||
|
||||
-colorGreen(-cg)
|
float
|
|||
|
||||
-colorRed(-cr)
|
float
|
|||
|
||||
-dataType(-dt)
|
string
|
|||
|
||||
-enableFalseColor(-efc)
|
boolean
|
|||
|
||||
-maxColorBlue(-mxb)
|
float
|
|||
|
||||
-maxColorGreen(-mxg)
|
float
|
|||
|
||||
-maxColorRed(-mxr)
|
float
|
|||
|
||||
-maxValue(-mxv)
|
float
|
|||
|
||||
-minColorBlue(-mnb)
|
float
|
|||
|
||||
-minColorGreen(-mng)
|
float
|
|||
|
||||
-minColorRed(-mnr)
|
float
|
|||
|
||||
-minValue(-mnv)
|
float
|
|||
|
||||
-mode(-m)
|
int
|
|||
|
||||
-noColorBlue(-ncb)
|
float
|
|||
|
||||
-noColorGreen(-ncg)
|
float
|
|||
|
||||
-noColorRed(-ncr)
|
float
|
|||
|
||||
-numIdTypes(-num)
|
int
|
|||
|
||||
-queryMode(-q)
|
|
|||
|
||||
-typeId(-id)
|
int
|
|||
|
||||
-useMax(-umx)
|
boolean
|
|||
|
||||
-useMin(-umn)
|
boolean
|
|||
|
||||
-value(-v)
|
string
|
|||
|
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. |
// In these examples we have type 1000, with one double attribute // called "fluffy", and type 1001 with attributes "grimy" and "slimy". // Color all items of id 1000 red. Note that we must also specify // None color (black) and Clash color(cyan). Note that we must also // specify the names of the attributes, even if we don't care about // the attribute values: polyColorBlindData -ncr 0 -ncg 0 -ncb 0 -ccr 0 -ccg 1 -ccb 1 -id 1000 -num 1 -m 0 -n "fluffy" -cr 1 -cg 0 -cb 0; // Now color only those values of "fluffy" between 2 and 5: polyColorBlindData -ncr 0 -ncg 0 -ncb 0 -ccr 0 -ccg 1 -ccb 1 -id 1000 -num 1 -m 2 -dt "double" -n "fluffy" -umn 1 -mnv 2 -umx 1 -mxv 5 -cr 1 -cg 0 -cb 0; // Note for a continuous range query we must specify min, max and // out of range color instead of just color (here values between 2 and 5 // are colored between white and gray, out of range values are yellow): polyColorBlindData -ncr 0 -ncg 0 -ncb 0 -ccr 0 -ccg 1 -ccb 1 -id 1000 -num 1 -m 6 -dt "double" -n "fluffy" -bmr 1 -bmg 1 -bmb 0 -amr 1 -amg 1 -amb 0 -mnr 0.250980407 -mng 0.250980407 -mnb 0.250980407 -mxr 1 -mxg 1 -mxb 1 -mnv 2 -mxv 5; // Now, for attribute "fluffy", color values of 2 red and values of 2 green: polyColorBlindData -ncr 0 -ncg 0 -ncb 0 -ccr 0 -ccg 1 -ccb 1 -id 1000 -num 1 -m 1 -dt "double" -n "fluffy" -v "2" -cr 1 -cg 0 -cb 0 -id 1000 -num 1 -m 1 -dt "double" -n "fluffy" -v "3" -cr 0 -cg 1 -cb 0; // To just query and not color, filter the active selection list // and return the list of components that meet the criteria (in this // case having blind data of type 1000) polyColorBlindData -q -id 1000 -num 1 -m 0 -n "fluffy"; // Now if we have 2 attributes: polyColorBlindData -ncr 0 -ncg 0 -ncb 0 -ccr 0 -ccg 1 -ccb 1 -id 1001 -num 2 -m 0 -n "grimy" -n "slimy" -cr 1 -cg 0 -cb 0; // Note that when querying for value, values of all attrs must be specified // here we set (grimy = 22, slimy = 1) to be red, and (grimy = 55, slimy = 2) // to be green polyColorBlindData -ncr 0 -ncg 0 -ncb 0 -ccr 0 -ccg 1 -ccb 1 -id 1001 -num 2 -m 1 -dt "double" -n "grimy" -v "22" -cr 1 -cg 0 -cb 0 -dt "int" -n "slimy" -v "1" -cr 1 -cg 0 -cb 0 -id 1001 -num 2 -m 1 -dt "double" -n "grimy" -v "55" -cr 0 -cg 1 -cb 0 -dt "int" -n "slimy" -v "2" -cr 0 -cg 1 -cb 0;