ShaderMap Version 4.x
Override Default Filenames with XML
ShaderMap allows users to override default batch naming as well as default project filenames for generated maps. To override default filenames you must locate and edit the file "sm_filename_overrides.xml". This file is located in the Windows Documents folder in the ShaderMap sub folder:

"C:\Users\<USER>\Documents\ShaderMap\SM4\sm_filename_overrides.xml"

The XML file is divided into two sections: Batch Overrides and Default Project Overrides. The first section allows the user to set the output directory (relative or absolute), the output filename, and suffix for any specific map type. Below is a default batch filename setting for the Albedo (Diff) map:

<!-- Albedo (Diff) -->

<map_diff_to_albedo output_directory="\" filename="%batch_source_filename%" suffix="%default%" />

The default settings are "\" for output directorty (will save the file to the batch source map directory), "%batch_source_filename%" for filename (will use the batch source filename), and "%default%" for suffix (will use the plugin defined suffix for the saved map). Below is a user defined setting which will save the map to the relative sub folder "sub_b", name the map "MY_ALBEDO", and use the suffix "_MYEXT".

<!-- Albedo (Diff) -->

<map_diff_to_albedo output_directory="\sub_a\sub_b" filename="MY_ALBEDO" suffix="_MYEXT" />



The second section in the filename override XML file is the default project maps. Default projects are created from the ShaderMap Start Page. Maps generated from a single source (Color, Displacement, Normal, or 3D Model) have output filepaths setup by default. Editing this section of the XML allows users to define output directory, filename, and suffix for each of the default maps. Below is a default map filename setting for the Displacement (Diff) map:

<!-- Displacement (Diff) -->

<map_diff_to_disp_2 output_directory="\" filename="%source_filename%" suffix="%batch_suffix%" />

The default settings are "\" for output directorty (will save the file to the source directory), "%source_filename%" for filename (will use the source filename), and "%batch_suffix%" for suffix (will use the plugin defined batch suffix for the saved map). Below is a user defined setting which will save the map to the relative sub folder "upper_b", name the map "MY_DISP", and use a blank suffix "".

<!-- Displacement (Diff) -->

<map_diff_to_disp_2 output_directory="..\..\upper_b" filename="MY_DISP" suffix="" />

Be sure to read the comments in the XML file for further instructions on how to edit the override XML entities.

ShaderMap Software Documentation
Copyright © 2017 Rendering Systems Inc.