Update 'ModuleTrigger'
104
ModuleTrigger.md
104
ModuleTrigger.md
@@ -1,53 +1,53 @@
|
||||
# Module.json Trigger
|
||||
A trigger is a way for the timeline to call the server side of a module. This way you can control the module behavior automatically. You can also specify parameters to input values. A basic trigger with no parameters will look like this:
|
||||
```JSON
|
||||
{
|
||||
"title":"Update Something",
|
||||
"description": "This does something in the module.",
|
||||
"arguments:" []
|
||||
}
|
||||
```
|
||||
|Property|Description|
|
||||
|-|-|
|
||||
title|The title of the trigger, this is visible in the timeline.
|
||||
description|Description that explains what the trigger does.
|
||||
arguments|An array of arguments, see below.
|
||||
|
||||
## Arguments
|
||||
Arguments can be used to let a timeline creator input variable values. This can be used to control a module through the timeline. Every argument needs to have a type and some argument types have additional parameters. Below you can find the argument types and their parameters.
|
||||
|
||||
### text
|
||||
|Parameter|Type|Description|
|
||||
|-|-|-|
|
||||
title|string|Visual name of the argument.
|
||||
|
||||
### number
|
||||
|Parameter|Type|Description|
|
||||
|-|-|-|
|
||||
title|string|Visual name of the argument.
|
||||
|
||||
### scenes
|
||||
|Parameter|Type|Description|
|
||||
|-|-|-|
|
||||
title|string|Visual name of the argument.
|
||||
onlyContainingModule|boolean|Can only select scenes this module is a part of.
|
||||
|
||||
|
||||
## Example Argument
|
||||
Number argument
|
||||
```JSON
|
||||
{
|
||||
"type": "number",
|
||||
"title": "Hours from now"
|
||||
}
|
||||
```
|
||||
Scene select argument
|
||||
```JSON
|
||||
{
|
||||
"type": "scenes",
|
||||
"title": "In scenes",
|
||||
"onlyContainingModule": true
|
||||
}
|
||||
```
|
||||
|
||||
# Module.json Trigger
|
||||
A trigger is a way for the timeline to call the server side of a module. This way you can control the module behavior automatically. You can also specify parameters to input values. A basic trigger with no parameters will look like this:
|
||||
```JSON
|
||||
{
|
||||
"title":"Update Something",
|
||||
"description": "This does something in the module.",
|
||||
"arguments": []
|
||||
}
|
||||
```
|
||||
|Property|Description|
|
||||
|-|-|
|
||||
title|The title of the trigger, this is visible in the timeline.
|
||||
description|Description that explains what the trigger does.
|
||||
arguments|An array of arguments, see below.
|
||||
|
||||
## Arguments
|
||||
Arguments can be used to let a timeline creator input variable values. This can be used to control a module through the timeline. Every argument needs to have a type and some argument types have additional parameters. Below you can find the argument types and their parameters.
|
||||
|
||||
### text
|
||||
|Parameter|Type|Description|
|
||||
|-|-|-|
|
||||
title|string|Visual name of the argument.
|
||||
|
||||
### number
|
||||
|Parameter|Type|Description|
|
||||
|-|-|-|
|
||||
title|string|Visual name of the argument.
|
||||
|
||||
### scenes
|
||||
|Parameter|Type|Description|
|
||||
|-|-|-|
|
||||
title|string|Visual name of the argument.
|
||||
onlyContainingModule|boolean|Can only select scenes this module is a part of.
|
||||
|
||||
|
||||
## Example Argument
|
||||
Number argument
|
||||
```JSON
|
||||
{
|
||||
"type": "number",
|
||||
"title": "Hours from now"
|
||||
}
|
||||
```
|
||||
Scene select argument
|
||||
```JSON
|
||||
{
|
||||
"type": "scenes",
|
||||
"title": "In scenes",
|
||||
"onlyContainingModule": true
|
||||
}
|
||||
```
|
||||
|
||||
View this in a [complete module.json example](./module.json).
|
||||
Reference in New Issue
Block a user