CreateVertexColorSupport

Introduced

1.0

Description

Adds vertex color support to an object. This command creates a sample point cluster (polygonnode cluster for mesh geometries) and a vertex color property that contains color values for all sample points in the object's geometry.

Scripting Syntax

CreateVertexColorSupport( PresetObj, [PropertyName], [InputObjs] )

Parameters

Parameter

Type

Description

PresetObj

String or a preset object (see SIGetPreset)

This argument is ignored: a Vertex_Color property is always applied.

Default Value: "Vertex_Color"

Possible Values:

Vertex_Color: Vertex Color Support property

PropertyName

String

Name of the vertex color property

Default Value: "Vertex_Color"

InputObjs

String

List of objects or vertex clusters

Default Value: Current selection

Return Value

Returns a list of created vertex color ClusterPropertys.

Examples

VBScript Example

dim sphere
set sphere = CreatePrim ( "Sphere", "MeshSurface" )
CreateVertexColorSupport , "MyVertexColorProperty", sphere

See Also

Cluster

ClusterProperty

PolygonMesh.AddVertexColor



Autodesk Softimage v7.5