Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions a vinyl roation and arrow reapting

  • a vinyl roation and arrow reapting

    Posted by Tielman Dewaele on October 3, 2007 at 1:25 pm

    Heyla,

    I was wandering/curious of its posible to do this:

    I have an arrow(3d) and one vinyl(3d) or lp(whatever its called in english) and counting nrs(3d).

    The arrow fades-in at 2.10
    i used:
    loopOut(type = “cycle”, numKeyframes = 0)

    I want it to stop repeating it at 5 seconds.
    How would i do this.

    The nrs fades-in at 2.10
    They are counting till 50.000, stops at 5 seconds as well.
    Is there away to link these to eachother?

    I now its easy tokeyframe, but ill have to make 10 more.
    The counting will be less or more, the timeline wil be less or more(depending on more text=more seconds)

    Also i want the vinyl to stop at the same time when arrow stops.
    (didnt used expression so far)

    Text counter used:

    startTime = 2; //seconds
    endTime = 5; //seconds
    beginCount = 0;
    endCount = 50000;
    hasCommas = true;
    //–dont modify below here—————-
    function addCommas ( s ){
    if( s.length <= 3 ) return s; else return s.substring(0 , 3) + "," + addCommas(s.substring(3, s.length)); } function reverse( s ){ newStr = ""; for(i = s.length-1; i >= 0; i–)
    newStr += s.charAt(i)
    return newStr;
    }

    val = Math.round (linear(time, startTime, endTime, beginCount, endCount) );
    if( hasCommas )
    reverse (addCommas(reverse( val + “” )))
    else
    val

    (got it from motionworks)

    Anybody that can help me?

    Thanks

    T.

    MacPRo intel quad core 2 G RAM
    External Maxtor & Iomega disks
    AE 7.0, CS PSD & AI
    FCP 5.1 studio
    C4d R10

    Kevin Camp replied 18 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kevin Camp

    October 3, 2007 at 2:08 pm

    something like this may work for you:

    endTime = 5 // end time in seconds;
    if (time < endTime) { loopOut(); }else{ value; } you could link the endTime variable to a slider on a null, then link your other end time variables to the same slider, thus linking all your end time values together. so your first line might look something like this: endTime = thisComp.layer("Null 1").effect("Slider Control")("Slider"); the stop point in the loop will be abrupt, and it will 'jump' to the last keyframed value. this can be acounted for if needed, or avoided if anticipated in the loop keyframe timing. Kevin Camp Designer – KCPQ, KMYQ & KRCW

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy