Behavior : Scenario

Author:Rex.Rainbow

Download

Properties

Debug mode

  • Enable to show log.
    • Options : ["No","Yes"]

Time stamp

  • Time stamp type.
    • Options : ["Accumulation","Differential"]

Eval mode

  • Enable "Eval mode" for parameters. "Mem" feature only could be used in eval mode.
    • Options : ["No","Yes"]

Activated

  • Enable if you wish this to begin at the start of the layout.
    • Options : ["No","Yes"]

Commands

  • Commands in JSON format

Offset

  • Time offset at start

Tag

  • Tag in csv table. "" is start from 1st command.

Repeat count

  • The times to execute commands repeatly. 0 is infinity.

Sync timescale

  • Sync to object's timescale.
    • Options : ["No","Yes"]

Actions

0: Load

Action:Load CSV commands

  • Load commands in csv or json format.
    • Commands ( string ) : Commands string
    • Format ( Combo ) : String format.
      • Options : ["csv","JSON"]

Action:Clean commands

  • Clean all commands.

Action:Append commands

  • Append commands in csv or json format
    • Commands ( string ) : Commands string
    • Format ( Combo ) : String format.
      • Options : ["csv","JSON"]

Action:Load JSON commands

  • Load commands in JSON format.
    • Commands ( string ) : Commands in JSON format

Control

Action:Pause scenario

  • Pause scenario.

Action:Resume scenario

  • Resume scenario.

Action:Stop scenario

  • Stop scenario.

Flow control

Action:Start scenario

  • Start scenario.
    • Offset ( number ) : Time offset at start
    • Tag ( string ) : Tag in csv table. "" is start from 1st command.
    • Repeat ( number ) : Repeat count. 0 is infinity.

Memory

Action:Set value

  • Set the value stored in memory.
    • Index ( number or string ) : Index of memory, can be number of string
    • Value ( number or string ) : Value of memory

Action:Load from JSON

  • Load memory from JSON string.
    • JSON string ( string ) : JSON string.

Response - Wait

Action:Continue all

  • Continue scenario, response of wait command.

Action:Continue with key

  • Continue scenario, response of locked-wait command.
    • Key ( number or string ) : Key of locked-wait command

Setting

Action:Set time offset

  • Set time offset.
    • Offset ( number ) : Time offset at start

Setup

Action:Setup

  • Setup.
    • Timeline ( object ) : Timeline object to get timer

Expressions

Command

Expression:Param

  • Get the value of a parameter passed to the command.
    • Index ( number or string ) : The zero-based index of the parameter to get.

Memory

Expression:Mem

  • Get the value from memory by index.
    • 0 ( number or string ) : The index of memory to get, can be number of string.

Expression:MEMToString

  • Transfer memory to JSON string.

Tag

Expression:LastTag

  • Get last tag.

Expression:PreviousTag

  • Get previous tag.

Expression:CurrentTag

  • Get current(last) tag.

Conditions

Command

Condition:On command

  • Triggered when command executing.
    • Name ( string ) : Command name

Condition:Compare parameter

  • Compare the value of a parameter in a function call.
    • Index ( number or string ) : The zero-based index of the parameter to get.
    • Comparison ( cmp ) : How to compare the function parameter.
    • Value ( number or string ) : The value to compare to.

Condition:Type of parameter

  • Test the type of parameter.
    • Index ( number or string ) : The zero-based index of the parameter to get.
    • Type ( Combo ) : The type of value.
      • Options : ["Number","String"]

Control

Condition:On loop end

  • Triggered when loop end.

Condition:Is running

  • Is scenario running.

Tag

Condition:On tag changed

  • Triggered when tag changed.

Condition:Is tag existed

  • Return true if tag is existed.
    • Tag ( string ) : Tag in csv table. "" is start from 1st command.

Wait

Condition:Is waiting any

  • Is scenario waiting for any signal.

Condition:Is waiting

  • Is scenario waiting for signal.
    • Key ( number or string ) : Key of locked-wait command

Condition:On waiting any start

  • Triggered when On waiting (for signal) start.

Condition:On waiting start

  • Triggered when On waiting (for signal) start.
    • Key ( number or string ) : Key of locked-wait command