Theme Config
How to create this config
- Copy this config file from the template and paste it in
[track_folder]/extension/steelstudio
- In the CSP Objects Inspector app, Select a mesh and copy it's name.
- Look at the Textures tab and choose the Texture type you want to override
- for simple meshes, it's normally txDiffuse
- for more complex ones, you might want to select txDetail
- Edit the first object by replacing the content in meshNames and texture.
- Save the file. Reopen Steel Studio, select the theme then try to change the palette.
info
Actually, you need to specify the mesh that has the material you need to change the texture.
For example, you can specify two meshes that have different materials to change the color on both materials.
Config file properties
extension/steelstudio/theme_00_default.json
{
"theme": "Default",
"backgrounds": [
{ "color": "0.9, 0.8, 0.7, 1", "texture": "txDetail", "meshNames": ["MESH1", "MESH2"], "label": "Color Palette 1" },
{ "color": "0.8, 0.5, 0.4, 1", "texture": "txDetail", "meshNames": ["MESH3"], "label": "Color Palette 2" },
{ "color": "0.8, 0.8, 0.9, 1", "texture": "txDetail", "meshNames": ["MESH4"], "label": "Color Palette 3" }
]
}
Name | Description | Possible values |
---|---|---|
theme | Theme name seen in the Theme selection button | String |
backgrounds | Array containing the color palettes | Array |
Backgrounds Array properties
Name | Description | Possible values |
---|---|---|
color | RGBA colors, comma separated | 0-1, 0-1, 0-1, 0-1 |
texture | Texture type (role) to replace | String ( txDiffuse | txDetail | ... ) |
meshNames | Array containing one or more meshes with the material to replace the texture | Array of String |
label | Name of the palette shown in Steel Studio | String |