SBModel#

This class describes the common base class for models in SAMSON.

Structural, visual, dynamical, interaction, and property models all derive from this class.

See also

samson.SBModelNode

SAMSON SDK: SBMModel

class samson.SBModel#

Bases: SBNode

Base class for model nodes.

SBModel adds model-specific metadata on top of SBNode, notably source-file tracking and model rendering shadowing behavior.

clearSourceFileName(self: samson.SBModel) None#

Clears the source file name.

getNextModel(self: samson.SBModel) samson.SBModel#

Returns the next model in the same parent branch.

getPreviousModel(self: samson.SBModel) samson.SBModel#

Returns the previous model in the same parent branch.

property hasSourceFileName#

Returns True if a source file name is set.

property modelType#

Model type (read-only).

property shadowingFlag#

Controls whether the model casts shadows.

property sourceFileName#

Source file name associated with the model.