- 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
sbswriter
class sbswriter.SBSWriter(aXmlRootNode, aPackagePath, aContext)
Bases: object
Class used to provide useful functions when writing a .sbs (=xml) file from a SBSDocument
setXmlElementAttribValue(aXmlElementParent, aAttribute, aAttribName)
setXmlElementVAttribValue(aXmlElementParent, aAttribute, aChildName) Write the given attribute as a child of the given XmlParent, using the format
setXmlElementVAttribValue(aXmlElementParent, aAttribute, aChildName)
Write the given attribute as a child of the given XmlParent, using the format
setXmlFilePathValue(aXmlElementParent, aAttribute, aChildName)
Convert attribute path before as a absolute path. Write the given attribute as a child of the given XmlParent, using the format
writeAllSBSNodesIn(aXmlNode, aObject, aTagName)
Write the given list of SBSObject using its proper writing method, and its XML description directly to the given XmlNode ………
writeListOfSBSNode(aXmlNode, aSBSObject, aTagName, aChildTagName)
Write the given list of SBSObject using their proper writing method, and add its hierarchical XML description to the given XmlNode ………
writeOnDisk(aFileAbsPath, aFormatDoc=False, aIncludeXMLHeader=True)
Write on disk the XmlRootNode, with the appropriate header, at the given path
writeSBSNode(aXmlNode, aSBSObject, aTagName)
Write the given SBSObject using its proper writing method, and add its XML description to the given XmlNode …