Forum Replies Created

Page 32 of 1081
  • Dan Ebberts

    January 31, 2024 at 6:02 pm in reply to: .csv words cycle in After Effects

    It appears that you pulled your .csv file into the timeline, so you should be able to use a Source Text expression like this:

    n = thisComp.layer("MCBU Roster for Video copy.csv")("Data")("Number of Rows");
    idx = Math.min(timeToFrames(time),n-1);
    footage("MCBU Roster for Video copy.csv").dataValue([0,idx])
  • Dan Ebberts

    January 31, 2024 at 5:49 pm in reply to: .csv words cycle in After Effects

    What does the .csv file look like?

  • Presumably, that would have to be done with an expression, but unfortunately, there’s currently no way for an expression to apply multiple font styling to a single text layer.

  • Dan Ebberts

    January 30, 2024 at 4:45 pm in reply to: Adding an expression to a path

    That’s surprising because I’m running your code and it works for me:

    function getActiveComp(){
    var theComp = app.project.activeItem;
    if (theComp == undefined){
    var errorMsg = localize("$$$/AE/Script/CreatePathNulls/ErrorNoComp=Error: Please select a composition.");
    alert(errorMsg);
    return null
    }
    return theComp
    }
    function createShape(targetComp) {
    return targetComp.layers.addShape();
    }
    function createShapeGroup(shape) {
    return shape.property("Contents").addProperty("ADBE Vector Group");
    }
    function createPath(group) {
    return group.property("Contents").addProperty("ADBE Vector Shape - Group");
    }
    var comp = getActiveComp();
    var shp = createShape(comp);
    shp.name = ("Curve");
    var curvgrp = createShapeGroup(shp);
    curvgrp.name = ("CurveGrp");
    var curv = createPath(curvgrp);
    curv.property("Path").expression = "value";
  • Dan Ebberts

    January 29, 2024 at 11:14 pm in reply to: Adding an expression to a path

    Try this one:

    curv.property("Path").expression = "value";
  • Dan Ebberts

    January 29, 2024 at 9:39 pm in reply to: Why isn’t this script creating four nulls?

    Ah, OK. I think in your addCheckbox() function you need to change this:

    chz.setValue(defaultValue);

    to this:

    chz("ADBE Checkbox Control-0001").setValue(defaultValue);
  • Dan Ebberts

    January 29, 2024 at 8:24 pm in reply to: Why isn’t this script creating four nulls?

    It works for me if I comment out the addSlider() calls since that function isn’t included. If I don’t comment those out, it errors out, and it only creates one null.

  • Dan Ebberts

    January 26, 2024 at 5:20 pm in reply to: Determining the coordinates of a point on a circle

    Try changing this line

    rayon = (thisComp.layer("TraceArc").content("Ellipse Path 1").size) / 2;

    to this:

    rayon = (thisComp.layer("TraceArc").content("Ellipse Path 1").size)[0] / 2;
  • This should tell you how many levels of parents a layer has:

    L = thisLayer;
    n = 0;
    while(L.hasParent){
    n++;
    L = L.parent;
    }
    n
  • Dan Ebberts

    January 25, 2024 at 10:17 pm in reply to: Loop between 2 keyframes in a middle of animation

    Maybe something like this:

    t2 = key(2).time;
    t3 = key(3).time;
    t4 = key(4).time;
    t = time;
    if (time >= t3 && time < t4){
    t = t2 + (time - t3)%(t3 - t2);
    }
    valueAtTime(t);
Page 32 of 1081

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