简体   繁体   中英

Trying to create a bake substance script in maya pymel

I have been trying to figure out how to script my own bake script for substance materials to files in maya, or find some documentation somewhere that gives me the commands and the format it should be used in. Has anyone made a script using the substance commands that I could look at fro reference? All I have found is a list of these commands that I found in the substance plugin information:

sbs_IsSubstanceRelocalized()
sbs_SetBakeFormat()
sbs_GetGlobalTextureHeight()
sbs_GetEditionModeScale()
sbs_GetChannelsNamesFromSubstanceNode()
sbs_AffectTheseAttributes()
sbs_GetSubstanceBuildVersion()
sbs_SetEditionModeScale()
sbs_GetBakeFormat()
sbs_GetEngine()
sbs_GetGlobalTextureWidth()
sbs_GoToMarketPlace()
sbs_GetGraphsNamesFromSubstanceNode()
sbs_GetAllInputsFromSubstanceNode()
sbs_AffectedByAllInputs()
sbs_EditSubstance()
sbs_GetPackageFullPathNameFromSubstanceNode()
sbs_SetGlobalTextureWidth()
sbs_SetEngine()
sbs_SetGlobalTextureHeight()

Please help!

Here is a short script I use to load a substance in mel script

// load plugin should be "substance" on windows
loadPlugin "libSubstance";
// create sbs node
string $sbsnode = `shadingNode -asTexture substance`;
// load sbsar with absolute path
setAttr($sbsnode+".package") -type "string" "/usr/autodesk/maya/substance/substances/Aircraft_Metal.sbsar";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM