The following methods expose the Relax Tool of the UnwrapUVW Modifier to MAXScript.
Methods:
<void><Unwrap_UVW>.RelaxOneClick()
Equivalent to pressing the "Relax Until Flat" icon in the Edit UVs dialog.
Exposed via unwrap6
interface in 3ds Max 2012.
Methods:
<void><Unwrap_UVW>.relax2dialog()
Opens the Relax Tool dialog.
Exposed via unwrap3
interface in 3ds Max 6 and higher.
<integer><Unwrap_UVW>.getRelaxIteration()
Returns the relax iterations count.
Exposed via unwrap3
interface in 3ds Max 6 and higher.
<void><Unwrap_UVW>.setRelaxIteration <integer>amount
Sets the relax iterations count to the specified value.
Exposed via unwrap3
interface in 3ds Max 6 and higher.
<float><Unwrap_UVW>.getRelaxAmount()
Returns the relax amount.
Exposed via unwrap3
interface in 3ds Max 6 and higher.
<void><Unwrap_UVW>.setRelaxAmount <float>amount
Sets the relax amount to the spacified value.
Exposed via unwrap3
interface in 3ds Max 6 and higher.
<boolean><Unwrap_UVW>.getRelaxBoundary()
Get the Relax Boundary Points status.
When true
, the boundary points will remain fixed. Returns the state of the "Keep Boundary Points Fixed" checkbox in the Relax dialog.
Exposed via unwrap3
interface in 3ds Max 6 and higher.
<void><Unwrap_UVW>.setRelaxBoundary <boolean>boundary
Set the Relax Boundary Points status.
When set to true
, the boundary points will remain fixed. Affects the state of the "Keep Boundary Points Fixed" checkbox in the Relax dialog.
Exposed via unwrap3
interface in 3ds Max 6 and higher.
<boolean><Unwrap_UVW>.getRelaxSaddle()
Get Relax saddle status.
Returns the state of the "Save Outer Corners" checkbox in the Relax dialog.
Exposed via unwrap3
interface in 3ds Max 6 and higher.
<void><Unwrap_UVW>.setRelaxSaddle <boolean>saddle
Set Relax saddle status.
Affects the state of the "Save Outer Corners" checkbox in the Relax dialog.
Exposed via unwrap3
interface in 3ds Max 6 and higher.
<void><Unwrap_UVW>.relaxByFaceAngle <integer>iterations <float>stretch <float>strength <boolean>lockBoundaries
Performs a "Relax By Face Angles" operation without opening the Relax Tool dialog.
The arguments correspond to the Iterations value, Stretch value, Amount value and Keep Boundary Points Fixed checkbox state found in the Relax Tool > Relax By Face Angles mode.
Exposed via unwrap5
interface in 3ds Max 8 and higher.
<void><Unwrap_UVW>.relaxByEdgeAngle <integer>iterations <float>stretch <float>strength <boolean>lockBoundaries
Performs a "Relax By Edge Angles" operation without opening the Relax Tool dialog.
The arguments correspond to the Iterations value, Stretch value, Amount value and Keep Boundary Points Fixed checkbox state found in the Relax Tool>Relax By Edge Angles mode.
Exposed via unwrap5
interface in 3ds Max 8 and higher.
<void><Unwrap_UVW>.relax2()
Performs a "Relax by Centers" operation using the current settings.
Same as pressing the Apply button in the Relax Dialog.
Exposed via unwrap3
interface in 3ds Max 6 and higher.
Methods:
<integer><Unwrap_UVW>.getRelaxBySpringIteration()
Returns the Iteration value.
Exposed via unwrap5
interface in 3ds Max 8 and higher.
<void><Unwrap_UVW>.setRelaxBySpringIteration <integer>iteration
Sets the Iteration value.
Exposed via unwrap5
interface in 3ds Max 8 and higher.
<float><Unwrap_UVW>.getRelaxBySpringStretch()
Returns the Stretch value.
Exposed via unwrap5
interface in 3ds Max 8 and higher.
<void><Unwrap_UVW>.setRelaxBySpringStretch <float>stretch
Sets the Stretch value.
Exposed via unwrap5
interface in 3ds Max 8 and higher.
<boolean><Unwrap_UVW>.getRelaxBySpringUseOnlyVEdges()
Returns the state of the Lock Bondaries checkbox.
Exposed via unwrap5
interface in 3ds Max 8 and higher.
<void><Unwrap_UVW>.setRelaxBySpringUseOnlyVEdges <boolean>useOnlyVEdges
Sets the state of the Lock Bondaries checkbox.
Exposed via unwrap5
interface in 3ds Max 8 and higher.
<void><Unwrap_UVW>.relaxBySpring <integer>frames <float>stretch <boolean>useOnlyVEdges
Performs the relax by spring without opening the dialog.
The arguments correspond to the Iterations value, Stretch value and Lock Boundaries checkbox state.
Exposed via unwrap5
interface in 3ds Max 8 and higher.
Methods:
<void><Unwrap_UVW>.relax <integer>iterations <float>strength <boolean>lockEdges <boolean>matchArea
Performs the pre-3ds Max 6 Relax operation using the provided arguments.
Exposed via unwrap2
interface in 3ds Max 5 and higher.
Relax2()
method and related methods described below.<void>fitRelax <integer>iterations <float>strength
Performs a Fit Relax.
Exposed via unwrap2
interface in 3ds Max 5 and higher.