Skip to content

Behavior

The behavior object represents a black box which will include some logic, in form of a python script, that can be used to model the component behavior. The behavior logic will be interfaced using variables that can be connected to other elements.

Variables will be defined inside the 'variable' element by their name, data type (smtk_...), type (input, output or constant) and optionally public or not.

Attributes

  • Name: The name used when referring to this element from other places.

Mandatory children

  • step_time: Step time to force the execution of the behavior logic periodically in seconds. If it is 0, it is executed when any input changes.
    • Var: smtk_float
    • Type: input
    • Default value: 0.0

Optional children

  • variable: Behavior variable linked to the python script in order to exchange information.

Selectable child

  • script: Python script asset GUID.
    • Var: smtk_guid
    • Type: constant
    • Default value: <empty>
    • File extension: .py