- Subscribe to RSS Feed
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content
Setting Sequential Repeat on Chains and Clips
Repeat a Chain Sequentially for a Set Amount of TimeChains can be repeated sequentially for a certain length of time by the placement of two scripts within the chain itself. Any number of Messages or other Clip Elements can be placed between the two Scripts. |
|
|
|
Alternatively, a number could be set as the maximum. For example, if you wanted to repeat for “ |
|
Repeat a Clip Sequentially for a Set Amount of TimeClips can be repeated sequentially for certain length of time by the placement of two scripts within the clip itself. The first Script is placed at the beginning of the Clip, and records the starting time of the first repeat of the Clip in a Clip Custom Property. The second Script is placed at the end of the Clip, and measures the elapsed time at the end of each repeat. If the desired amount of time has passed, it causes the Clip to stop repeating. The Clip is set to repeat for a very large number of repeats, so that it will repeat forever until the second Script stops it. Alternatively, a number could be set as the maximum, for example if you wanted to repeat for "n times or until m seconds have passed, whichever comes first". |
|
|
Note that any number of Messages or other Clip Elements could be between the two Scripts. This example contains a Delay simply to make the example not generate too much data. |
|
|
The composition contains a test clip with a large number of repeats. |
|
|
The Record start time script source is presented here. |
|
| The Check elapsed time script source is presented here. |
|



