3D Lingo Dictionary > C-D > colorList |
![]() ![]() ![]() |
colorList
Syntax
member(whichCastmember
).modelResource(whichModelResource
).colorList member(whichCastmember
).modelResource(whichModelResource
).colorList[index
] member(whichCastmember
).model(whichModel
).meshdeform.mesh[meshIndex
].colorList member(whichCastmember
).model(whichModel
).meshdeform.mesh[meshIndex
].colorList[index]
Description
3D property; allows you to get or set every color used in a mesh. This command is accessible only for model resources of the type #mesh. Any single color can be shared by several vertices (faces) of the mesh. Alternately, you can specify texture coordinates for the faces of the mesh and apply a shader to models that use this model resource.
This command must be set to a list of the same number of lingo color values specified in the newMesh
call.
Example
This statement shows that the third color in the colorList
of the model resource Mesh2 is rgb(255, 0, 0).
put member("shapes").modelResource("mesh2").colorlist[3] -- rgb(255,0,0)
See also
![]() ![]() ![]() |