sevent
- Last UpdatedSep 05, 2024
- 1 minute read
This topic is about the SEVENT data type.
Value syntax
text
Description
Used to map activation signal properties, such as start and stop. By default, every time the value of a SEVENT field is changed by the system it is assigned to current timestamp by the scene manager.
Attributes
These are the attributes for SEVENT.
|
Attribute |
Type |
Description |
|---|---|---|
|
isModified |
sbool |
Set to True in the frame where the value of this field is modified. |
|
type |
sstring |
Returns the type name |
SEVENT and Event Listening
For each SEVENT parameter xxx in a node, there is a corresponding SSTRING command parameter called xxxCommand.
This parameter can have the name of a command node.
The command parameter can be populated with a comma-separated string. The first item of the string is the command node name and the following are its parameters.
For example: xxxCommand,true,0 calls xxxCommand with %0% = true and %1% = 0.
Notes
-
When the xxx event is raised (internally or by script) the system executes the command set in its xxxCommand parameter (if any).
-
You can use this to implement event listening without having to route the SEVENT xxx parameter to the xxxCommand.execute parameter.
-
Ensure that this command listening system also supports parameters. This way, the command is called and then one or more values can be passed to it.