Forum Replies Created

  • Ernestas Cepulionis

    September 16, 2020 at 7:41 am in reply to: GEAR ANIMATION

    Hi, could you upload AEP file

  • Ernestas Cepulionis

    September 8, 2020 at 7:06 pm in reply to: Expression or Essential Graphics template advice

    I suggest to use expression control to describe position of first precomp layer and for the rest precomp layers write an expression where horizontal align is the same as first precomp , vertical offset is described using layer index (let say y position is 200 pixels * index + textSize). You can add more slider controls to manage position of first precomp layer, distance between all precomp layers and so on.

  • You don’t need a script on this issue because expressions describes behavior of layers/motion. Just take circle or ellipse formula, make some variables like speed and initial throw angle and make some calculations to get arc. You can use expression control also for quick managment of your animation. With script you can do the same calculations, but instead of motion function that could be described with expression, you can output script calculations to keyframes. In this case you can’t control your animation, you need run script each time to get new animation with different initial parameters. In ghis case you can write a gui script, but i don’t think that you need it ?

  • Ernestas Cepulionis

    March 3, 2017 at 5:32 am in reply to: Controlling Rotation Speed

    Hi,

    I studied math of this expression and I can’t find out why did you divided some values by 2?

    …..
    (t2 – t1)*spd/2
    (t4 – t3)*spd/2;
    (time – t3)*(v+spd)/2;
    (time – t1)*v/2;
    ….

    spd = effect("Slider Control")("Slider");
    t1 = 0; // on-ramp start
    t2 = 1; // on-ramp finish
    t3 = 5; // off-ramp start
    t4 = 6; // off-ramp finish

    if (time > t4){
    accum = (t2 - t1)*spd/2 + (t3 - t2)*spd + (t4 - t3)*spd/2;
    }else if (time > t3){
    v = linear(time,t3,t4,spd,0);
    accum = (t2 - t1)*spd/2 + (t3 - t2)*spd + (time - t3)*(v+spd)/2;
    }else if (time > t2){
    accum = (t2 - t1)*spd/2 + (time - t2)*spd;
    }else if (time > t1){
    v = linear(time,t1,t2,0,spd);
    accum = (time - t1)*v/2;
    }else{
    accum = 0;
    }

    value + accum

  • Hello,

    I wonder, it is possible to add a REPEATER to my shape layer using the script? I got an error when i’m trying to add a repeater to my script:
    //
    var myRepeater = shapeGroup.property(“Contents”).addProperty(“ADBE Vector Graphic – Repeater”);
    //
    AE error: asked to create unknown property of type “ADBE Vector Graphic – Repeater” (1d16).

    Is there any list of all ADBE Vector properties?

    var myShapeLayer = myComp.layers.addShape();
    myShapeLayer.name = ("Ball");
    var shapeGroup = myShapeLayer.property("Contents").addProperty("ADBE Vector Group");
    var myEllipse = shapeGroup.property("Contents").addProperty("ADBE Vector Shape - Ellipse");
    myEllipse.property("Size").setValue([200,100]);
    var myStroke = shapeGroup.property("Contents").addProperty("ADBE Vector Graphic - Stroke");
    myStroke.property("Color").setValue([255,255,0]);
    myStroke.property("Opacity").setValue([100]);
    myStroke.property("Stroke Width").setValue([2]);
    var myFill = shapeGroup.property("Contents").addProperty("ADBE Vector Graphic - Fill");
    myFill.property("Color").setValue([0,0,255]);
    myFill.property("Opacity").setValue([100]);
    var myRepeater = shapeGroup.property("Contents").addProperty("ADBE Vector Graphic - Repeater");
    ....

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