rex_tweenTasks
Introduction
Run tasks of tween functions.
LiteTween behavior is good at easing value of instance properties. This plugin is good at easing value of non-instance properties, like rotating layer angle, or slow down time scale. Moreover, this plugin could run complex tween tasks.
Run tasks of tween functions.
LiteTween behavior is good at easing value of instance properties. This plugin is good at easing value of non-instance properties, like rotating layer angle, or slow down time scale. Moreover, this plugin could run complex tween tasks.
Quick reference - tween function
Sample capx
Follow these steps to start a tween task-
Sample capx
Follow these steps to start a tween task-
- Call "Action:New function task" to create a new tween task, assign task name, function name, interval and repeat count here.
- Call "Action:Set parameter" under "Function" category to set function parameters used in tween function, assign parameter name, start and end value, easing function. A function task could have more than 1 function parameter.
- Call "Action:Start" to start this function task.
- "Condition:On function" would be triggered during task running. Get current value of function parameter by "Expression:FnParam".
Follow these steps to run a task-
- Create task and its child tasks. Set repeat count to 0 for running it infinity.
- Start task by "Action:Start".
- "Condition:On any task done", "Condition:On task done" would be triggered while task done.
Create task
Task types
This plugin supports 5 possible task types -
This plugin supports 5 possible task types -
- Function task: run easing function
- Wait task: do nothing, only wait N seconds
- Wait for signal task: do nothing. only wait for signal input from event sheet
- Sequence task: run tasks one by one
- Parallel task: run all tasks, then wait them done
Function task
"Condition:On function" would be triggered during task running. Get current value of function parameter by "Expression:FnParam" which defined at step 2.
Or call "Action:New inversed task" to create a new tween task copied from other tween task and swapping start and end value of all defined function parameters. (Sample capx)
"Action:Apply easing" could be used to overwrite easing function of specific function parameter.
"Condition:On function" would be triggered during task running. Get current value of function parameter by "Expression:FnParam" which defined at step 2.
Or call "Action:New inversed task" to create a new tween task copied from other tween task and swapping start and end value of all defined function parameters. (Sample capx)
"Action:Apply easing" could be used to overwrite easing function of specific function parameter.
Wait task
Call "Action:New wait task" to create a new wait task to wait N seconds.
It might be part of sequence task usually.
Call "Action:New wait task" to create a new wait task to wait N seconds.
It might be part of sequence task usually.
Wait for signal task
Call "Action:New wait for signal task" to create a new wait task to wait for signal input from event sheet by "Action:Continue task".
It might be part of sequence task usually..
Call "Action:New wait for signal task" to create a new wait task to wait for signal input from event sheet by "Action:Continue task".
It might be part of sequence task usually..
Sequence task
- Call "Action:New sequence task" to create a new sequence task to run tasks one by one.
- Then add child task by "Action:Add child task" with task name. All kinds of task could be added.
Parallel task
Sample capx
Sample capx
- Call "Action:New parallel task" to create a new parallel task to run tasks parallel.
- Then add child task by "Action:Add child task" with task name. All kinds of task could be added.
Run task
Start task by "Action:Start". Task could be auto destroyed while done if set parameter "Destroy to "Destroy".
Call "Action:Pause" to pause running task. Then call "Action:Resume" to resume paused task.
"Action:Destroy task" could be used to destroy task manually.
All of these actions only are effective to task, not child task.
Start task by "Action:Start". Task could be auto destroyed while done if set parameter "Destroy to "Destroy".
Call "Action:Pause" to pause running task. Then call "Action:Resume" to resume paused task.
"Action:Destroy task" could be used to destroy task manually.
All of these actions only are effective to task, not child task.
Status of task
"Condition:On any task start", "Condition:On task started" would be triggered while task started.
"Condition:On any task done", "Condition:On task done" would be triggered while task done.
Get triggered task name by "Expression:TaskName" under these trigger conditions.
"Condition:Is task running" will return true if specific task is running.
"Condition:On any task start", "Condition:On task started" would be triggered while task started.
"Condition:On any task done", "Condition:On task done" would be triggered while task done.
Get triggered task name by "Expression:TaskName" under these trigger conditions.
"Condition:Is task running" will return true if specific task is running.
Bind instance
Sample capx
To bind instance used in "Condition:On function" triggered, this plugin provides "Action:Bind instance" to bind an instance on a task. Set parameter "Destroy" to "Destroy" could destroy this bound instance automatically while task done. User could bind instance on a task or a child task.
The bound instance would be picked into SOL automatically.
Or get bound instance by "Expression:BoundInstUID" then assign properties of instance by rex_uid2prop plugin. (Sample capx ) Since there is not type assignment, this "Condition:On function" could be used for all kind of object types.
Sample capx
To bind instance used in "Condition:On function" triggered, this plugin provides "Action:Bind instance" to bind an instance on a task. Set parameter "Destroy" to "Destroy" could destroy this bound instance automatically while task done. User could bind instance on a task or a child task.
The bound instance would be picked into SOL automatically.
Or get bound instance by "Expression:BoundInstUID" then assign properties of instance by rex_uid2prop plugin. (Sample capx ) Since there is not type assignment, this "Condition:On function" could be used for all kind of object types.
Delta value of function parameter
Sample capx
"Expression:FnParam" is used to get current value of function parameter. User could get delta value of function parameter by the same expression apply "delta" at 2nd parameter.
Sample capx
"Expression:FnParam" is used to get current value of function parameter. User could get delta value of function parameter by the same expression apply "delta" at 2nd parameter.
Expression:FnParam( param_name, "delta" )
Moreover, user could get start or end value by applied "start" pr "end" at 2nd parameter
Expression:FnParam( param_name, "start" )
Expression:FnParam( param_name, "end" )
Task parameters
Each task could have a set of parameters stored by key-value pair. Set task parameter by "Action:Set parameter", get back by "Expression:TaskParam".
It would pick task parameter at current task, then search at parent task if not found at current task. So that it is possible to put global task parameters at root task, and private task parameters at each child task with unique parameter name.
Each task could have a set of parameters stored by key-value pair. Set task parameter by "Action:Set parameter", get back by "Expression:TaskParam".
It would pick task parameter at current task, then search at parent task if not found at current task. So that it is possible to put global task parameters at root task, and private task parameters at each child task with unique parameter name.
Debug panel
Status of tasks would be shown at debug panel.
Status of tasks would be shown at debug panel.