Define a material replacement mapping algorithm

 
 
 

Material replacement mapping algorithms are external text files that you create to define precisely how materials are replaced in Showcase. Placed in the correct locations, you can use this file to tell Showcase to replace materials based on the color values of the original materials, object layer membership, and original material names. Showcase looks in all materials locations (for example, My Documents\Autodesk Showcase 2013\Materials) for the mapping files named ReplacementMap*.txt.

Note

You can create more than one of these files. If Showcase finds more than one file, the contents of the files are combined then sorted to be executed in the following order: base color, layers, and material names.

To define a mapping algorithm for material replacement:

  1. Create a new folder within the folder that contains your userprefs.xml file (usually in My Documents\Autodesk Showcase 2011), and rename the folder to Materials. This is where the mapping files will reside.
  2. Copy the file TemplateReplacementMap.txt(located in the installation's support/Materials folder) to the Materials folder.
  3. Rename the file so that it starts with the words “ReplacementMap” (for example ReplacementMap.txt, ReplacementMapLayers.txt, ReplacementMapABC.txt, and so on).
  4. Edit the following sections of this file, and then save the file:
    Note

    Multiple sections of the same type can be in the same file.

    • For color-based mapping (see RGB examples ):
      [The name of the color based mapping] Type: RGB256 RedValue0to255 GreenValue0to255BlueValue0to255: ShowcaseMaterialSection::ShowcaseMaterialName RedValue0to255GreenValue0to255 BlueValue0to255: ShowcaseMaterialSection::ShowcaseMaterialName
      
    • For layer-based mapping (see Layer examples ):
      [The name of the layerbased mapping] Type: Layers LayerName: ShowcaseMaterialSection::ShowcaseMaterialNameLayerName: ShowcaseMaterialSection::ShowcaseMaterialName 
      
    • For original name-based mapping (see Names examples ):
      [Thenameof the original material name based mapping] Type: Names OriginalMaterialName:ShowcaseMaterialSection::ShowcaseMaterialName OriginalMaterialName:ShowcaseMaterialSection::ShowcaseMaterialName ...
      
RGB examples

All objects with original materials with the diffuse color 120 120 120 turn to hi gloss maple, as do those with original diffuse color 5 35 35. All colors are in the 0 to 255 range.

[RGBExample]
Type: RGB256
120 120 120 255: Wood::Maple-Hi Gloss
5 35 35: Wood::Maple-Hi Gloss 

More examples for colors; there can be multiple entries in the file, or multiple files.

[RGB Example2]
Type: RGB256
24 124 124 255: Metal::Gold
20 0 255: Metal::Gold
Layer examples

All objects from layer 07.Logos turn to Showcase gold. All objects from layer 09.Logos turn Showcase chrome.

[LayerExample]
Type: Layers
07.Logos: Metal::Gold
09.Logos: Metal::Chrome 

Some more examples for layers; there can be multiple entries in the file, or multiple files.

[Layer Example2]
Type: Layers
08.Interior.Floor: Wood::Maple-Hi Gloss
10.Interior.Floor: Wood::Maple-Satin Finish 
Names examples

All objects with the original material named Chrome turn to Showcase chrome; all objects with the original material PlasticSatin turn to Showcase hi gloss maple wood.

[NamesExample]
Type: Names
Chrome: Metal::Chrome 
PlasticSatin: Wood::Maple-Hi Gloss 

More examples for material names; there can be multiple entries in the file, or multiple files.

[Names Example2]
Type: Names
Something: Metal::Gold
OrOther: Wood::Maple-Hi Gloss