SetUserNormalValues

Introduced

v8.0 (2010)

Categories

property

Description

Sets user normals to the specified numeric values. The user normals are specified by their corresponding sample indices.

Note: This command will create user normals if required.

Scripting Syntax

SetUserNormalValues( [InputObj], Indices, Values );

Parameters

Parameter Type Description
InputObj String The mesh to set user normals on.

Default Value: Current selection

Indices XSICollection Array of sample indices to modify.
Values XSICollection Array of normal values. (3 per index)

Examples

JScript Example

// Create a cube and set user normals for the top face
CreatePrim("Cube", "MeshSurface");
var indices = [16,17,18,19];
var normals = [-1,1,-1, -1,1,1, 1,1,1, 1,1,-1];
SetUserNormalValues(null, indices, normals);

See Also

CreateUserNormals ResetUserNormals RemoveUserNormals AverageUserNormals SetVertexUserNormals SetPolygonUserNormals InvertUserNormals NormalizeUserNormals CopyUserNormals PasteUserNormals