haw use 2 code loop and code motion2 ?
hello
help me
haw use 2 code loop and code motion2
example
motion 2 script
try {
amp = effect("Rotation - Overshoot")("ADBE Slider Control-0001") / 2.5, freq = effect("Rotation - Bounce")("ADBE Slider Control-0001") / 20, decay = effect("Rotation - Friction")("ADBE Slider Control-0001") / 20, n = 0, 0 < numKeys && (n = nearestKey(time)
.index, key(n)
.time > time && n--), t = 0 === n ? 0 : time - key(n)
.time, 0 < n ? (v = velocityAtTime(key(n)
.time - thisComp.frameDuration / 10), value + v / 100 * amp * Math.sin(freq * t * 2 * Math.PI) / Math.exp(decay * t)) : value;
} catch (e$$4) {
value = value;
}
and use loop code
loopOut(type = "cycle", numKeyframes = 0)