Unwrap_UVW Modifier - Peel Mapping
The following methods expose the Unfold3D and Least Squares Conformal Mapping (LSCM)-based Peel Mapping functionality to MAXScript.
Unfold3D Mapping
<void><Unwrap_UVW>.Unfold3DSolve()
Performs a Peel operation using the Unfold3D solver, based upon the currently specified map seams. In polygon subobject mode, new mapping coordinates are computed only for the selected polygons; in any other mode, mapping coordinates are recomputed over the entire mesh. The Unfold3D solver is generally more robust than the legacy LSCM solver available via the LSCMSolve()
function, and typically yields superior results.
Exposed via unwrap8
interface in 3ds Max 2022.2 Update and higher.
<void><Unwrap_UVW>.Unfold3DOptimize()
Relaxes the positions of the texture vertices in the interior of the current UV clusters, following the Unfold3D algorithm. In polygon subobject mode, relaxation is applied only to the texture vertices used by the selected polygons; in any other mode, relaxation is applied over the entire mesh.
Exposed via unwrap8
interface in 3ds Max 2022.2 Update and higher.
<void><Unwrap_UVW>.Unfold3DPack()
Performs UV cluster packing in accordance with the currently-specified packing parameters, employing the Unfold3D packing algorithm. In polygon subobject mode, only the selected polygons are packed; in any other mode, relaxation is applied over the entire mesh. The Unfold3D packing algorithm is generally more efficient than the legacy approaches, and typically yields a more dense packing. Note that when Unfold3D is the currently selected packing method, the function packNoParams()
is equivalent to calling this function.
Exposed via unwrap8
interface in 3ds Max 2022.2 Update and higher.
<void><Unwrap_UVW>.Unfold3DAutoseams()
Eliminates any pre-existing map seams defined on the current mesh and generates a new set of seams, based upon the Unfold3D algorithm. The algorithm attempts to select seams in a manner which is optimal for a subsequent Unfold3D Peel operation.
This functionality is presently accessible only via MaxScript.
Exposed via unwrap8
interface in 3ds Max 2022.2 Update and higher.
LSCM (Peel) Mapping
<void><Unwrap_UVW>.LSCMInteractive <boolean>useExistingMapping
Enters interactive peeling mode. If the argument is true, the existing mapping will be used.
Exposed via unwrap6
interface in 3ds Max 2012 and higher.
<void><Unwrap_UVW>.LSCMSolve()
Performs a Quick Peel.
Exposed via unwrap6
interface in 3ds Max 2012 and higher.
<void><Unwrap_UVW>.LSCMReset()
Resets the results of the peeling.
Exposed via unwrap6
interface in 3ds Max 2012 and higher.
Pin Vertices
Properties:
<Unwrap_UVW>.autoPin BooleanClass default: true -- boolean
Get/set the state of the "Auto-Pin Moved Vertices" icon.
When set to true (default), selecting and moving a vertex will automatically set its pinned state.
Available in 3ds Max 2012 and higher.
<Unwrap_UVW>.filterPin BooleanClass default: false -- boolean
Get/set the state of the "Select Pinned Vertices".
When set to true, only pinned vertices can be selected, unpinned ones will be filtered out.
When set to false (default), all vertices can be selected.
Available in 3ds Max 2012 and higher.
Methods:
<void><Unwrap_UVW>.PinSelected <node>node
Pins down all selected map vertices in the specified node. Corresponds to the "Pin Selected" icon in the "Peel" rollout of the UVs Editor.
Exposed via unwrap6
interface in 3ds Max 2012 and higher.
<void><Unwrap_UVW>.UnpinSelected <node>node
Unpins the selected map vertices in the specified node. Corresponds to the "Unpin Selected" icon in the "Peel" rollout of the UVs Editor.
Exposed via unwrap6
interface in 3ds Max 2012 and higher.
<boolean><Unwrap_UVW>.IsPinned <index>index <node>node
Returns true if the indexed map vertex in the specified node is pinned, false if it is not pinned.
Exposed via unwrap6
interface in 3ds Max 2012 and higher.
<void><Unwrap_UVW>.Pin <index>index <node>node
Pins down the indexed map vertex in the specified node.
Exposed via unwrap6
interface in 3ds Max 2012 and higher.
<void><Unwrap_UVW>.Unpin <index>index <node>node
Unpins the indexed map vertex in the specified node.
Exposed via unwrap6
interface in 3ds Max 2012 and higher.