Autodesk Maya scene shading exporter.
- Import and export shading based on hierarchy
- Supports custom shape attributes
- UI supporting asset based import and export
import shadeset
shadeset.ui.show()
Apply shadesets that you've exported for specific assets.
- Select the shadeset you'd like to apply
- In your outliner, select the top transform of the hierarchy you'd like to apply it to.
- Click apply.
Export shadesets for an asset.
- Apply some shaders.
- Select the top level transform of the hierarchy that you'd like to export shading data for.
- Select the asset you'd like to export the shading data for.
- Optionally provide a suffix like "red" or "green".
- Click export.
Configure the projects root directory and templates used to lookup assets and publish root directories.
Templates must include {root}, {project} and {asset}. You may add additional fields as needed. The publish template should start with your asset template if you want to save shadesets into your asset folders.
Gather shading data from a scene using all registered
Subsets
.
Arguments:
- selection (bool): Gather shading data for the selected transforms
Returns:
- ShadeSet object containing the gathered shading data.
Gather shading data from the selected hierarchies.
Load a ShadeSet from disk.
Arguments:
- shade_path (str): Path to shadeset.yml file
Examples:
sset = load('some/shadeset.yml')
sset.apply(selection=True)
Save a Shadeset
to disk.
Arguments:
- shade_set (ShadeSet): shading data to save to write
- outdir (str): Output directory
- name (str): basename of Shadeset
Register a subset derived from SubSet
.
Unregister a subset derived from SubSet
.
Unregister all SubSet
.