This node exports several files from a color map.
The advantage of exporting multiple files is to optimize the rendering times for very large color maps in an external engine where it is more practical to manage parts of the color map in different files.
To add a node, right-click in the Graph Editor and select Create Node > Export > Multi file export color map.
Double click on the node to open its parameters:
To export a color map to multiple files, set the following parameters:
See Explanation about the formula for a detailed description about the formula.
Browse to the folder where want to save your files and copy the path.
In File pattern in the parameters dialog, paste the path and add a file name, for example here we add "Group" and then _$x_$y, where $x represents the position of the part of the color map on the X axis and $y represents the Y axis.
The following pattern works for exporting to UE4: "filename_X$x_Y$y.jpg" (UE4 requires an "X" and an "Y" before the coordinates of the tile).
The width, height and overlapping can be
driven by calculation nodes
linked to the optional connectors. In the example below, the width
of the export is controlled by a constant value of 40. See
Optional connectors for more details.
A pop-up dialog displays the progress of the export.
Another popup-up dialog confirms the export.
The files are exported to the directory entered in the File pattern box.
For the imported files, the node:
Each file is loaded, and forms the corresponding part of the final color map.
The replacement rules in the file names (or directory) are:
For example:
Expression | Product names |
---|---|
color map/$0x/$0y/file.bmp | color map/00/00/file.bmp color map/01/00/file.bmp color map/10/24/file.bmp |
color map/$0x/$0y/file_$x_$y.bmp | color map/00/00/file_0_0.bmp color map/01/00/file_1_0.bmp color map/10/24/file_10_24.bmp |
Parameter | Use |
---|---|
File pattern | Name and directory of the files to export |
File format | Format of the files to export |
Width and height | Sets the width and height of each file to export |
Overlapping | Sets the number of rows or columns to overlap |
Number of files | Non-editable parameter displaying the number of files to export depending on the graph and overlapping |
Copyright © 2022 · All Rights Reserved · Wysilab