- Substance 3D home
- Home
- Command Line Tools
- Command Line overview
- sbsbaker
- sbscooker
- sbsmtools
- sbsmutator
- sbsrender
- sbsupdater
- Command Line overview
- Pysbs - Python API
- Pysbs - Python API overview
- Getting started
- General topics
- Examples
- API Content
- API Content overview
- Substance definitions
- Common interfaces
- compnode
- context projectmgr
- graph
- mdl
- modelgraphindex
- modelannotationnames
- modelgraph
- modelgraphgenerator
- modelgraphimplementation
- modelnodenames
- modeloperand
- modulegraphindex
- moduleannotation
- moduleconnection
- modulegraph
- modulegraphgenerator
- modulegraphimplementation
- modulegraphlibrary
- modulegraphregister
- modulenode
- modulenodeimplementation
- modulenodeinstance
- moduleoperand
- moduleoutputbridging
- moduleparaminput
- params
- projectmgrdoc
- sbsarchive
- sbscommon
- sbspreset
- sbsproject
- substance
- Libraries
- sbsenum
- sbslibrary
- sbsbakerslibrary
- Helpers
- Execution context
- API Change log
- Samples
- Setup and Getting Started
- Integrations
- Substance Maya toolset
- Changelog overview
Using a template
The "template" tab in the Substance Maya Toolset allow to process a substance archive with the ability to tweak some basic inputs.
Example :
- You have a substance that generate a rock texture based on the curvature and the normal map.
- You have 10 or more rock to textures
- Setup the 10 rocks in Maya
- Select all of them and bake them
- Load the sbsar that generate the rock textures
- Select the 10 rocks in Maya and hit "Bake Template"
In this example you will have a set of textures unique for each mesh generated from one single sbsar in a few clicks.
Template Parameters
- Load sbsar : allow to locate and load an sbsar (substance archive)
- Seed : Random seed parameter (if exposed in the substance)
- Generate : Allow to generate a new random seed
- New seed per mesh : Since the sbsar will be processed for each mesh, by enabling this setting you will also generate a new random seed per mesh
- Refresh Inputs : In case the the sbsar has been updated, you can click on this button to reload it and refresh the input list
- Bake Template : Once a mesh is selected and an sbsar has been loaded, you can launch the bake process by using this button
- Subtance bake size : If the sbsar is set as relative to parent, these dropdown will configure the size of the generated textures
Substance Parameters
Once a substance has been loaded, the interface will refresh to display its parameters. In front of each image input is made a dropdown that allow to choose which texture from the bakers can be used.
The script should be able to detect your image input and apply the proper map if it contains :
- "uvs" will be detected as the UV map baker
- "curv" will be detected as the Curvature baker
- "norm" will be detected as the Normal from mesh baker
- "vtx" or "diffu" or "base" will be detected as the vertex color from mesh baker
- "heigh" will be detected as the height from mesh baker
- "pos" will be detected as the position baker
- "ids" or "mat" or "mid" or "mids" will be detected as the material from mesh baker
For the moment only image inputs and color inputs are available.