Do N
![do n](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/do_n-c9a360aca129e4792fce8a6795e4754e.png)
Use Do N to execute this node multiple times until it is reset. Do N is in the Control category.
Input
Name | Data Type | Description |
---|---|---|
Enter | Exec | The input execution that triggers this node. |
Reset | Exec | Reset this node so that it can be executed again. |
N | Number | The number of times you want to execute this node. |
Output
Name | Data Type | Description |
---|---|---|
Next | Exec | Execute the next node. |
Counter | Number | The current execution times out of the N, starting from 1. |
Example
![do n example](https://sf16-va.tiktokcdn.com/obj/eden-va2/vhreh7flszld/large_assets/do_n_example.gif)
This example uses our Face Morph template. Adding the Do N node enables your face movement to trigger the animation for a limited time. For example, here we set N=2 so your face movement will only trigger the animation twice.
![do n node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/do_n_node-e798bae8b35ee92cc14e4c4a187de13e.png)