moduleoperand module
Module moduleoperand aims to define SBSObjects that are relative to a module operand,
mostly ModuleOperand.
- class modulegraph.moduleoperand.ModuleOperand(aName='', aType='', aValue='', aDefaultValue='', aMetaData=None)
Bases:
SBSObjectClass that contains information on a MDL graph as defined in a .sbs file
- Members:
mName (str): operand’s name.
mType (str): operand’s type.
mValue (str): operand’s value.
mDefaultValue (str): operand’s value.
- equals(other)
Check if this SBSObject is equivalent to the other SBSObject. Some members may be excluded from this check, the UIDs or GUILayout for instance.
- getUidIsUsed(aUID)
Check if the given uid is already used in the context of this SBSObject.
- Parameters:
aUID (str) – UID to check
- Returns:
True if the uid is already used, False otherwise
- Raise:
AttributeError if the function getUidIsUsed in not properly overloaded on this SBSObject
- abstractmethod parse(aContext, aDirAbsPath, aSBSParser, aXmlNode)
Parse recursively the given xml node to retrieve the content of the SBSObject.
- class modulegraph.moduleoperand.ModuleOperandMetaData(**kwargs)
Bases:
SBSObjectGeneric sbsobject to manage operand metadata values. Each given key:value metadata are set as attribute self.key = value.
- equals(other)
Check if this SBSObject is equivalent to the other SBSObject. Some members may be excluded from this check, the UIDs or GUILayout for instance.
- getAttr(key)
- getUidIsUsed(aUID)
Check if the given uid is already used in the context of this SBSObject.
- Parameters:
aUID (str) – UID to check
- Returns:
True if the uid is already used, False otherwise
- Raise:
AttributeError if the function getUidIsUsed in not properly overloaded on this SBSObject
- parse(aContext, aDirAbsPath, aSBSParser, aXmlNode)
Parse recursively the given xml node to retrieve the content of the SBSObject.
- setAttr(key, value)