User Guide Cancel

sbsarobject | Substance 3D Automation ToolKit

sbsarobject

Module sbsarobject provides the definition of a SBSARObject, the base class for all objects of a .sbsar package.

class common_interfaces.sbsarobject.SBSARObject
class common_interfaces.sbsarobject.SBSARObject
 class common_interfaces.sbsarobject.SBSARObject  

Bases: object

Abstract class used to provide a common interface for all derived SBSARObject, and to ensure that each derived object implements the function ‘parse’

parse(aContext, aDirAbsPath, aSBSParser, aXmlNode)
parse(aContext, aDirAbsPath, aSBSParser, aXmlNode)
 parse(aContext, aDirAbsPath, aSBSParser, aXmlNode)  

Parse recursively the given xml node to retrieve the content of the SBSObject.

Parameters:
  • aContext (Context) – execution context
  • aDirAbsPath (str) – the absolute directory containing the current parsed package (.sbs file)
  • aSBSParser (SBSParser) – the substance parser
  • aXmlNode (xml.etree.ElementTree) – the xml node to parse

Get help faster and easier

New user?