haw use 2 code loop and code motion2 ?


hello
help me

haw use 2 code loop , 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)

you can't combine these things directly. loop have built motion code. workaround convert motion keyframes , apply loop result.

 

mylenium



More discussions in After Effects Expressions


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working