Dynamic Decals - Export
Export system for the dynamic decals tool. Two export modes: **Export Skin** (generates skin files ready for in-game use) and **Export Textures** (exports raw color, metallic, roughness, and color pal
Export system for the dynamic decals tool. Two export modes: Export Skin (generates skin files ready for in-game use) and Export Textures (exports raw color, metallic, roughness, and color palette maps as PNG/DDS for external editing).
Public API
| Function | Signature | Description |
|---|---|---|
M.registerEditorPreferences | (prefsRegistry) | Registers preferences (stub) |
M.editorPreferenceValueChanged | (path, value) | Preference change callback (stub) |
M.setup | (tool_in) | Registers "Export" section (order 25) and docs entry |
Export Skin
| Field | Source | Description |
|---|---|---|
| Vehicle Name | getPlayerVehicle(0).jbeam | Auto-detected, read-only |
| Skin Name | User input | Used as export identifier (spaces → underscores) |
Calls api.exportSkin(vehicleName, skinName) which generates all needed files (textures, material, JBeam).
Export Textures
| Field | Default | Description |
|---|---|---|
| Export Name | "skin" | Base filename (spaces → underscores) |
| Export Directory | /art/dynamicDecals/export/textures | Output path, file dialog available |
| Format | PNG (hardcoded) | DDS support defined but currently disabled |
Exported Files
| File | Content |
|---|---|
<name>_color.png | Base color texture |
<name>_metallic.png | Metallic map |
<name>_roughness.png | Roughness map |
<name>_colorPalette.png | Color palette map |
Overwrite warnings shown for existing files.
Usage Example
-- Export skin for current vehicle:
api.exportSkin("vivace", "my_racing_livery")
-- Export raw textures:
api.exportTextures("/art/dynamicDecals/export/textures/", "my_livery", "png")Dependencies
| Module | Purpose |
|---|---|
editor_api_dynamicDecals | exportSkin(), exportTextures() |
editor_dynamicDecals_docs | Documentation registration |
editor_fileDialog | Directory selection dialog |
See Also
- Dynamic Decals - Browser - Related reference
- Dynamic Decals - Brushes - Related reference
- Dynamic Decals - Camera - Related reference
- World Editor Guide - Guide
Dynamic Decals - Documentation System
In-tool documentation system for the dynamic decals tool. Provides a two-column window with a filterable table of contents (left) and content panel (right). Other modules register documentation sectio
Dynamic Decals - Fonts
Font atlas generation and management for the dynamic decals tool. Rasterizes TTF fonts into atlas textures (with optional SDF), provides glyph browser, preview window, and integrates with the decal sy