Skip to main content

Counter

counter

Use Counter to increase or decrease the count by set step when executed. Counter is in the Utility category.

Input

NameData TypeDescription
IncreaseExecAdd step value to the count sum.
DecreaseExecDeduct step value from the count sum.
ResetExecReset the counter to its From value.
StepNumberStep value to increase or decrease.
FromNumberStart value of the count.
ToNumberEnd value of the count.

Output

NameData TypeDescription
ExitExecExecute the next node.
CurrentNumberCurrent output number.

Example

counter 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.

counter node