range from 0 to 1 and has 3 channels of R, G, and B. Universal Manipulator initially moves in opposite direction MAYA-93733: Maya Colorset Visualization is inconsistent between viewports and modes when subdivided MAYA-91857: UV Editor interaction is sluggish with large (> 500k vertices) meshes MAYA-99610: Viewport 2. Create a new empty color set that has the values in the Create a new empty color set with a generate new name Pol圜olorSet -create -colorSet "newColor" name of which is automatically generated and returned. Make a copy of "color1" to a new color set. Copy values of the current color set to "color2" Pol圜olorSet -copy -colorSet "color1" -newColorSet "color2" will generate a new unique name based on the source name. Leaving the destination color blank and the command Note if the second color set exist it will be overwriten by Copy values of color set "color1" to "color2" To delete the current color set (if any) To delete a currently existing color set "color3". Pol圜olorSet -rename -newColorSet "color3" Rename the current color set (if any) to "color3". Pol圜olorSet -rename -colorSet "color3" -newColorSet "color4" To rename a currently existing color set from "color3" to "color4". Pol圜olorSet -create -colorSet "perInst" -perInstance true Pol圜olorSet -create -colorSet "perInst" -perInstance true -unshared To create a per-instance color set family with one set member Pol圜olorSet -currentColorSet -colorSet "color2" To set the current color set to be "color2". This returns the member of the setįamily that corresponds to the currently select instance. This is a query-only flag for use when the current color set isĪ per-instance color set family. Instances that share the set specified by the colorSet flag. Sets within a given color set family so that all selected instances This flag is used to modify the sharing of per-instance color Set should be created with a separate set per instance. PerInstance flags to indicate that the newly created per-instance This flag can be used in conjunction with the create and In query mode, this flag can accept a value. not containing instance identifiers) will be The currentColorSet or allColorSets flag to indicate that the setįamily names (i.e. The perInstance flag can be used in query mode with When youĬreate a per-instance color set, the set will be applied as sharedīetween all selected instances of the shape unless the unsharedįlag is used. Indicate whether or not the color set is per-instance. This flag can be used in conjunction with the create flag to This flag corresponds to the color channels to used, for This flag specifies if the color set will truncate any value This flag when used in a query will return a list of all of the If a color set with that name already exists, then no new This flag when used will result in the creation of an emptyĬolor set corresponding to the name specified with the colorSetįlag. This flag when used will result in the copying of the color setĬorresponding to name specified with the colorSet flag to theĬolorSet corresponding to the name specified with the newcolorSet Set corresponding to the name specified with the colorSet This flag when used will result in the deletion of the color The name specified using the newColorSet flag. Set corresponding to the name specified with the colorSet flag to This flag when used will result in the renaming of the color Specified with the colorSet flag, needs to be renamed to. Specifies the name that the color set corresponding to the name This does require that aĬolorSet with the specified name exist. Object needs to work on, to be the color set corresponding to the This flag when used will set the current color set that the This flag has to be specified for this command to doĪnything meaningful other than query the current color set. Specifies the name of the color set that this command needs to Poly, colorSet, currentColorSet, renameColorSet, deleteColorSet,ĬurrentColorSet, currentPerInstanceSet, delete, newColorSet, perInstance, rename, representation, shareInstances, unshared Long name (short name) In query mode, return type is based on queried flag. Value(s) of all color sets - query the representation value or Query the name(s) along with representation value(s) or clamped modify sharing between instances of per-instance color sets. set the current color set to a pre-existing color set. Pol圜olorSet is undoable, queryable, and editable.Ĭommand to do the following to color sets: - delete an existingĬolor set. Kindly give solutions based on the code below.Pol圜olorSet Button color should remain white as long as the object is selected. New to mel and I'm writing a UI for object selecting in my Maya scene and I need help on how I can use the scriptjob to change the button color to white when the object is selected and back to default color when object is deselected.
0 Comments
Leave a Reply. |