Skip to main content

Theme Config

How to create this config

  1. Copy this config file from the template and paste it in [track_folder]/extension/steelstudio
  2. In the CSP Objects Inspector app, Select a mesh and copy it's name.
  3. 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
  4. Edit the first object by replacing the content in meshNames and texture.
  5. 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" }
]
}
NameDescriptionPossible values
themeTheme name seen in the Theme selection buttonString
backgroundsArray containing the color palettesArray

Backgrounds Array properties

NameDescriptionPossible values
colorRGBA colors, comma separated0-1, 0-1, 0-1, 0-1
textureTexture type (role) to replaceString ( txDiffuse | txDetail | ... )
meshNamesArray containing one or more meshes with the material to replace the textureArray of String
labelName of the palette shown in Steel StudioString