v7.5
Updates the Packing settings for the specified Unfold Property.
Packing controls how the unfolded islands are arranged relative to each other in UV space.
oBoolean = UnfoldPackUpdate( UnfoldProperty(s) ); |
Returns a Boolean reporting whether or not the command was successful.
| Parameter | Type | Description |
|---|---|---|
| UnfoldProperty(s) | List of Unfold Property objects | The Unfold property to update. |
/*
This example demonstrates how to update the packing settings for an Unfold property
*/
NewScene(null, false);
CreatePrim("Grid", "MeshSurface");
// Set up an Unfold property on the grid and then
// set the island spacing to 0.038%
UnfoldApply("grid");
SetValue("grid.Unfold.Pack_spacing", 0.038);
// Launch unfolding + adjust + packing process
UnfoldPackUpdate("grid.Unfold");
// Now reset the island spacing to 0.03% and launch packing process
SetValue("grid.Unfold.Pack_spacing", 0.030);
UnfoldPackUpdate("grid.Unfold"); |