MAXScript Language Reference > 3ds Max Objects > Modifier : MAXWrapper and SpacewarpModifier : MAXWrapper > Modifier and SpacewarpModifier Types > Modifiers > UVW Modifiers >

# Unwrap_UVW : Modifier

    Unwrap_UVW - superclass: modifier; super-superclass:MAXWrapper - classID: #(48180794, 1924812319)

Value > MAXWrapper > Modifier > Unwrap_UVW

| Quick Navigation - Main Index |  | Modifier Classes - Quick Navigation

Unwrap_UVW Modifier Sub-Topics |
--- | ---
Command Panel Controls Edit UVWs Floater Main Toolbar Mapping Preferences Dialog Regular (Unfold) Mapping Relax Render UV Template | Select and Transform Spline Mapping Tools LSCM (Peel) Mapping Group Pelt Mapping Topology Editing

Constructors

    unwrap_UVW ...
    UVWunwrap ...

Properties

    <Unwrap_UVW>.baseMaterial UndefinedClass default: undefined -- material;

Get/Set the Base Material.Available in 3ds Max 8 and higher.

    <Unwrap_UVW>.baseMaterial_list ArrayParameter default: #() -- material array

Get/Set the Base Material List.Available in 3ds Max 2008 and higher.

    <Unwrap_UVW>.checkerMaterial Standardmaterial default: UnwrapChecker:Standard -- material; SubAnim

Get/Set the Checker Material.Available in 3ds Max 8 and higher.

    <Unwrap_UVW>.texMapIDList ArrayParameter default: #() -- int array;

Get/Set the Texture Map ID list.Available in 3ds Max 8 and higher.

    <Unwrap_UVW>.texMapList ArrayParameter default: #() -- texturemap array;

Get/Set the Texture Map list.Available in 3ds Max 8 and higher.

    <Unwrap_UVW>.vertexSnap BooleanClass default: true -- boolean; Vertex_Snap

Enable/Disable the Vertex Snap.Available in 3ds Max 8 and higher.

    <Unwrap_UVW>.edgeSnap BooleanClass default: true -- boolean; Edge_Snap

Enable/Disable the Edge Snap.Available in 3ds Max 8 and higher.

    <Unwrap_UVW>.gridSnap BooleanClass default: true -- boolean; Grid_Snap

Enable/Disable the Grid Snap.Available in 3ds Max 8 and higher.

    <Unwrap_UVW>.showImageAlpha BooleanClass default: false -- boolean; Show_Image_Alpha

Enable/Disable the Show Image Alpha option in the Unwrap Options dialog.Available in 3ds Max 8 and higher.

    <Unwrap_UVW>.alignByPivotHorizontal UndefinedClass default: undefined -- void

Available in 3ds Max 2012 and higher.

    <Unwrap_UVW>.alignByPivotVertical UndefinedClass default: undefined -- void

Available in 3ds Max 2012 and higher.

    <Unwrap_UVW>.peelAutoEdit BooleanClass default: true -- boolean

Available in 3ds Max 2012 and higher.

## Apply To Whole Object

Methods:

    <boolean><Unwrap_UVW>.getApplyToWholeObject()

Gets the state of the Apply to whole object mode. When true, the Unwrap will ignore the selection set being passed to it.

Exposed via unwrap2 interface in 3ds Max 5 and higher.

    <void><Unwrap_UVW>.setApplyToWholeObject <boolean>whole

Sets the state of the Apply to whole object mode. When set to true, it will force Unwrap to ignore the selection set being passed to it. It has to be set before the modifier is applied to the object.

Exposed via unwrap2 interface in 3ds Max 5 and higher.

## Hide Polygons in Viewports

Methods:

    <void><Unwrap_UVW>.hideSelectedPolygons()

Hides the selected mesh polygons in the viewports.

Exposed via unwrap2 interface in 3ds Max 5 and higher.

    <void><Unwrap_UVW>.unhideAllPolygons()

Unhides the mesh polygons in the viewports.

Exposed via unwrap2 interface in 3ds Max 5 and higher.

    <point3><Unwrap_UVW>.getNormal <integer>faceIndex

Returns the normal of the indexed face.

Exposed via unwrap2 interface in 3ds Max 5 and higher.

## Viewport Options

Methods:

    <boolean><Unwrap_UVW>.getConstantUpdate()

Returns the state of Constant Update as a boolean value. When true, viewport is updated on every move, otherwise it is just updated on mouse up.

Exposed via unwrap interface in 3ds Max 4 and higher.

    <void><Unwrap_UVW>.setConstantUpdate <boolean>update

Sets the state of the Constant Update value. When true, the viewport is updated on every move, otherwise it is just updated on mouse up.

Exposed via unwrap interface in 3ds Max 4 and higher.

    <boolean><Unwrap_UVW>.getShowSelectedVertices()

Returns a boolean value which indicates whether the selected texture vertices are also displayed in the viewports.

Exposed via unwrap interface in 3ds Max 4 and higher.

    <void><Unwrap_UVW>.setShowSelectedVertices <boolean>show

Sets whether the selected texture vertices are also displayed in the viewport.

Exposed via unwrap interface in 3ds Max 4 and higher.

## Map Scale

Methods:

    <boolean><Unwrap_UVW>.GetMapScale()

Returns the scaling factor when the user applies a planar map. The smaller the value the more the planar map is scaled down.

Exposed via unwrap interface in 3ds Max 4 and higher.

    <void><Unwrap_UVW>.SetMapScale <float>scale

Sets the scaling factor when the user applies a planar map. The smaller the value the more the planar map is scaled down.

<float> scale - The scaling factor for planar map.

Exposed via unwrap interface in 3ds Max 4 and higher.

    <void><Unwrap_UVW>.Straighten()

Exposed via unwrap6 interface in 3ds Max 2012 and higher.

## Show Icon

    <void><Unwrap_UVW>.showIcon <integer>index <boolean>show

Lets you turn on/off icons in the Unwrap UVW Edit dialog

The icons are as follows:

- 1 - Move Mode
- 2 - Rotate Mode
- 3 - Scale Mode
- 4 - Transform Mode
- 5 - Mirror Tool
- 6 - Expand Selection
- 7 - Contract Selection
- 8 - Soft Selection Falloff
- 9 - Soft Selection Space
- 10 - Soft Selection Strength
- 11 - Break
- 12 - Target Weld
- 13 - Weld Selected
- 14 - Update Map
- 15 - Show Map
- 16 - UV/VW/UW space
- 17 - Properties Dialog
- 18 - Map Drop List
- 19 - U Spinner
- 20 - V Spinner
- 21 - W Spinner
- 22 - Lock Sub Object
- 23 - Hide/Show
- 24 - Freeze/Thaw
- 25 - Filter Selected
- 26 - Mat Ids
- 27 - Pan Mode
- 28 - Zoom Mode
- 29 - Zoom Region Mode
- 30 - Fit Command
- 31 - Snap

Exposed via unwrap2 interface in 3ds Max 5 and higher.

## Debug Level (For Developers)

    <void><Unwrap_UVW>.setDebugLevel <integer>level

Development debugging level. Not exposed to the UI. Level 0 means no debug info, the higher the value the more info you will see in your script window.

Exposed via unwrap2 interface in 3ds Max 5 and higher.

#### See Also

- Modifier Common Properties, Operators, and Methods

- MAXWrapper Common Properties, Operators, and Methods

- Value Common Properties, Operators, and Methods

#### Topics in this section

- Unwrap_UVW Modifier - Command Panel Controls
- Unwrap_UVW Modifier - Edit UVWs Floater
- UnwrapUVW Modifier - Main Toolbar
- UnwrapUVW Modifier - Mapping Operations
- UnwrapUVW Modifier - Preferences Dialog
- Unwrap_UVW Modifier - Relax
- Unwrap_UVW Modifier - Render UV Template
- Unwrap_UVW Modifier - Select and Transform
- Unwrap_UVW Modifier - Spline Mapping
- UnwrapUVW Modifier - Tools
- Unwrap_UVW Modifier - LSCM (Peel) Mapping
- Unwrap_UVW Modifier - Group
- Unwrap_UVW Modifier - Pelt Mapping
- Unwrap_UVW Modifier - Topology Editing
- Unwrap_UVW Modifier - Regular (Unfold) Mapping