![]() For instance change the active color set to "colorSet1" using: You can manage color sets (creation, deletion etc.) with pol圜olorSet. This will change the per vertex color of the currently active color set, or create a new color set along with necessary dependency nodes (e.g. But most likely your mesh is going to be the end result of another node (skin cluster, subdivision, poly node generation etc.) and in this case an intermediate node of type pol圜olorPerVertex will be placed right before inMesh. If your mesh node does not receive any input mesh in his attribute inMesh then color sets and color values will be stored directly into the mesh node. You can manage the sets of colors through the UI with: Mesh Display ➞ Color Set Editor Maya allows you to define several color sets associated to a single mesh. ![]() You can check wether or not the shade mode is enabled/disabled by checking the mesh attribute displa圜olors with the MEL command: getAttr "mesh_name.displa圜olors" Color set Or call the MEL equivalent: toggleShadeMode(). Maya 2016 = Mesh Display ➞ Toggle Display Colors Attribute.To display per vertex color in Maya's viewport, select the mesh and enable in Maya's menu: Moves the selected color set down in the Color Set Editor’s list.Code snippet in C++ to be able to update the color of a mesh with Maya API on a per vertex basis. Moves the selected color set up in the Color Set Editor’s list. Green = weight2 x source green + (1-weight2) x base greenīlue = weight3 x source blue + (1-weight3) x base blueīlended color set alpha = weight x source alpha + (1-weight) x base alpha Move Up Red = weight1 x source red + (1 - weight1) x base red The source and base colors are added together, but the amount of each color channel in the resulting blended color set is controlled by the Red, Green, Blue and Alpha Weights according to the following formulae: You could also have a Blend Weight A of 1.0 and a Blend Weight B of -1.0 so that 100% of the source color is subtracted from 100% of the base color to create the blended color set according to the following formulae:īlended color set = primary blend weight x base color + secondary blend weight x source colorīlended color set alpha = primary blend weight x base color alpha + secondary blend weight x source color alpha Channels The source and base colors are added together or subtracted from each other, but the amount of each color in the resulting blended color set is controlled by the Blend Weight A and Blend Weight B.įor example, if the Blend Weight A is 0.80 and the Blend Weight B is 0.80, then 80% of the base color and 80% of the source color are added together to create the blended color set. The source and base colors are added together, but the amount of each color in the resulting blended color set is controlled by the Blend Weight A value.įor example, if the Blend Weight A is 0.25, then 75% of the base color and 25% of the source color are added together to create the blended color set according to the following formulae:īlended color set = (1- primary blend weight) x base color + primary blend weight x source colorīlended color set alpha = (1- primary blend weight) x base color alpha + primary blend weight x source color alpha Bilinear The resulting color is then applied over the base color using the source alpha to define the opacity of the blended color set according to the following formulae:īlended color set = base color x (source color x source alpha + 1 - source alpha)īlended color set alpha = base color alpha Linear The source color is multiplied by the base color. The resulting color is then applied over the base color using the source alpha to define the opacity of the blended color set according to the following formulae:īlended color set = base color - (source color x source alpha)īlended color set alpha = base color alpha Multiply The source color is subtracted from the base color. The resulting color is then applied over the base color using the source alpha to define the opacity of the blended color set according to the following formulae:īlended color set = base color + (source color x source alpha)īlended color set alpha = base color alpha Subtract The source color is added to the base color as if being projected onto the base through a slide projector. The shape of the decal is determined by the source color’s alpha according to the following formulae:īlended color set = source color x source alpha + (base color x (1 - source alpha))īlended color set alpha = 1 - ((1 - base color alpha) x (1 - source color alpha)) Add The source color is applied to the base color like a decal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |