Counter
Use Counter to increase or decrease the count by set step when executed. Counter is in the Utility category.
Input
Name | Data Type | Description |
---|---|---|
Increase | Exec | Add step value to the count sum. |
Decrease | Exec | Deduct step value from the count sum. |
Reset | Exec | Reset the counter to its From value. |
Step | Number | Step value to increase or decrease. |
From | Number | Start value of the count. |
To | Number | End value of the count. |
Output
Name | Data Type | Description |
---|---|---|
Exit | Exec | Execute the next node. |
Current | Number | Current output number. |
Example
This example uses Counter to incrementally increase the z coordinate of the sphere when the finger heart gesture is detected. The sphere moves slower and then faster in the preview as the step of the increment changes according to the absolute value of the sphere’s z coordinate itself.