GenerateUniqueUVs

Description

Generates a UV projection where the UV coordinates on the polygon meshes are set such that no two polygons overlap in the UV domain.

Note: This command uses output arguments. C# and some scripting languages (such as JScript, PerlScript and Python) don't support arguments passed by reference so you need to use the best workaround for your situation:

For scripting languages this command returns an ISIVTCollection which you can use to get the output arguments.

For C# you can use the XSIApplication.ExecuteCommand method to call this command. ExecuteCommand packs the output arguments into a C# System.Object containing an Array of the output arguments (see Calling Commands from C#).

Scripting Syntax

GenerateUniqueUVs( [InputObjs], PropertyName, [LowU], [LowV], [Width], [Height], [SpaceU], [SpaceV], [Properties] );

Parameters

Parameter Type Description
InputObjs String List of objects to which the texture support is applied.

Default Value: Selected objects

PropertyName String Name for the texture projection name. Returns the actual name.
LowU Double The U value of the left side of the target bounding box.

Default Value: 0

LowV Double The V value of the bottom of the target bounding box.

Default Value: 0

Width Positive Double The width of the target bounding box.

Default Value: 1

Height Positive Double The height of the target bounding box.

Default Value: 1

SpaceU Double The minimum spacing in U between disjoint polygons.

Default Value: 0

SpaceV Double The minimum spacing in V between disjoint polygons.

Default Value: 0

Properties UV Property The set of created properties.