MAXScript Language Reference > 3ds Max Objects > UtilityPlugin Classes >

# Instance_Duplicate_Maps : UtilityPlugin

This utility finds all duplicate maps and makes them instances instead of copies. Can affect user selection or all.

Constructor:

    Class instances not creatable by MAXScript

Alias:

    InstanceDuplMap

Note

Animation is not supported, due to the breadth and complexity of controllers.

A warning message will be dispayed if animation is found.

Undo is not supported

## Instance_Duplicate_Maps Interface:

    Interface: InstanceDuplMapInterface

Methods:

    <void>findDuplicateMap <&texturemap array>mapsFound
    mapsFound is Out parameter

Finds duplicate maps, stores them in the by-reference mapsFound array

    <void>findCopyMap <texturemap>duplMap <&texturemap array>mapsFound
    mapsFound is Out parameter

Finds map copies of the supplied duplicate map, stores them in the by-reference mapsFound array.

    <bool>fixMap <&texturemap array>maps [prompt:<bool>]
    maps is In parameter
    prompt default value: true

Fixes the maps in the by-reference array. Propmpts the user if the optional prompt parameter is set to true.

    <boolean>fixMapAll [prompt:<bool>]
    prompt default value: true

Fixes all maps. Propmpts the user if the optional prompt parameter is set to true.

## Instance_Duplicate_Maps Interface:

    Interface:InstanceDuplMapActions

Methods:

    <boolean>InstanceDuplMapAll () -- Action Interface

Actions:

    Category: Instance_Duplicate_Map_Actions; Action: Instance_Duplicate_Map; Shortcut: -- none defined --