Forum Replies Created

Page 3 of 6
  • Peter Zeet

    April 6, 2017 at 8:42 pm in reply to: change color to array desired words

    uhm! yes, it gets quite complicated! thanks for the tip!!

  • Peter Zeet

    April 6, 2017 at 5:44 pm in reply to: change color to array desired words

    it’s a keyframed slider (with just 2 frames, one with value 0 and other with 100, which drives the final amount, but the place where the last keyframe is may vary)

    I have this expression at the text source:

    countTotal=3782721;
    textBefore = "+";
    textAfter = " $";
    s=thisComp.layer("control").effect("grow")("Slider");
    n="" + Math.round(s*countTotal/100);
    s="";
    for(i=0, l=n.length; i

  • Peter Zeet

    April 6, 2017 at 2:04 pm in reply to: change color to array desired words

    a quick variation… how it would be adding a fade instead of the 100 value?
    I’m doing a linear(time,0,.2,100,0), but it does nothing.
    I think I should define time ?

  • Peter Zeet

    April 5, 2017 at 6:29 pm in reply to: change color to array desired words

    works perfect, thank you!!

  • Peter Zeet

    March 26, 2017 at 10:32 pm in reply to: trim paths velocity

    awesome! many thanks!!
    I’m so sorry for not saying thanks before! I just realized you answered my question so long ago!

  • Hi!
    I tried to adapt a part of that code to make it flickering out instead of in, but I can`t make it stop, it gets stuck on an endless flickering,
    do you know how it would be to make it flicker but just during the “dur” number of frames and then zero transparency?

    delay =framesToTime(effect("delay")("Slider"))
    myDelay = delay*textIndex;
    m = marker
    n = 0;
    if (m.numKeys > 0){
    n = m.nearestKey(time).index;
    if (m.key("out").time > time) n--;
    }
    if (n > 0){
    t = time - (m.key("out").time + myDelay);
    startVal = 0;
    endVal = 100;
    seedRandom(textIndex,true);
    myDelay = random(delay/.15);
    seedRandom(textIndex,false);
    dur=framesToTime(effect("dur")("Slider"));
    if(t<0){
    value
    }else{
    random(linear(t,myDelay,myDelay+dur,startVal,endVal))

    }
    }

    else
    {
    value
    }

  • yay!! works perfectly, again, thanks!!!

  • thanks!!
    I gave a try selecting just 3 shape layers, but the script only works on the first selected layer. I guess that’s due to the tricky nature of the shape layers contents and groups, right?

    anyway, it will save a lot of time, thanks!!

  • Peter Zeet

    May 31, 2016 at 3:13 am in reply to: finding the position of a linear shape layer path

    hi!
    mmm it kinda works, but I had to tweak a bit the setup (maybe it has to be like this?)

    I had to:
    1.change the expression to
    s = thisComp.layer("yell");
    r = s.sourceRectAtTime(time,false);
    [(s.position + s.anchorPoint+ r.left+r.width)[0]] //on X pos, separated dimension

    2.change the Ball anchor point to its right
    3. change the yell shape layer’s anchor point to its left

    and this way, it works.. otherwise, it was waw super offseted from the line
    it’s weird, but it works 🙂

  • Peter Zeet

    May 31, 2016 at 1:22 am in reply to: finding the position of a linear shape layer path

    oh! sorry for the awful explanation, here what I mean:

    I was going to use the technique described on the early posts of the thread, but I wanted to do it getting rid of the copy the patm paste as position, etc, so I was wondering if an expression like the one I used, but tweaking the 423 and 1395 values inside of the linear, so instead if the actual X coords I could use the margin left and right of whatever the width of the path could be, making it work always, so the circle is always following the end trim…

Page 3 of 6

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