Count of the number of number of times the currently loaded trip has been played.
This is generally used within a conditional if construct.
loopCount incrments whenever the time slider reaches the end of its travel,
either by playing the trip, or by manually dragging the slider to the extreme right end of travel.
During development, you can reset loopCount to zero using the refresh button on the header of the script dialog.
Example
"if": "loopCount % 2 == 0"// all even loops or "if": "loopCount % 2 == 1"// all odd loops
Count of the number of number of times the currently loaded trip has been played. This is generally used within a conditional
if
construct.loopCount
incrments whenever the time slider reaches the end of its travel, either byplaying
the trip, or by manually dragging the slider to the extreme right end of travel.During development, you can reset
loopCount
to zero using therefresh
button on the header of the script dialog.