v8.0 (2010)
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.
SetUserNormalValues( [InputObj], Indices, Values ); |
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) |
// 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); |