v7.5
Recalculates the unfold based on the current settings and stores the new unfolding in the Unfold texture UV Property.
oBoolean = UnfoldUpdate( [UnfoldProperty(s)], [Options] ); |
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.
Default Value: If not specified, the current selection is used. |
| Options | String | Specify "DoPack" to unpack while updating.
Default Value: "DoPack" |
#
# This example demonstrates how to re-launch the
# unfolding of a grid using the Unfold feature
#
a = Application
a.NewScene("", 0)
a.CreatePrim("Grid", "MeshSurface")
# Set up an Unfold property on the grid with a cutting line
a.UnfoldApply("grid")
a.UnfoldSetCut("grid.Unfold", "grid.edge[14,34,51,68,71,73,75]")
# Perform the initial unfolding and open the Texture Editor to see the results
a.UnfoldUpdate("grid.Unfold")
# Now modify the cutting line definition and recompute the unfolding
a.UnfoldAddToCut("grid.Unfold", "grid.edge[2,3]")
a.UnfoldUpdate("grid.Unfold")
|
UnfoldAddToCut UnfoldAdjustUpdate UnfoldApply UnfoldApplySel UnfoldClearCut UnfoldPackUpdate UnfoldRemoveFromCut UnfoldSelectCut UnfoldSetCut Unfold Property Editor reference