Forum Replies Created

Page 95 of 1081
  • Dan Ebberts

    March 27, 2022 at 2:16 pm in reply to: wiggle bias?

    Animating wiggle frequency that way can give you unpredictable results. This may help:

    http://www.motionscript.com/articles/speed-control.html#wiggle

  • Dan Ebberts

    March 26, 2022 at 7:43 pm in reply to: Add markers to parented layers & selected

    I can’t think of a way you could get that error message. It works for me (although it could use some error checking to make sure a comp is actually selected). Did you run it the way I posted it, or did you make it part of something else?

  • Dan Ebberts

    March 26, 2022 at 6:26 pm in reply to: Add markers to parented layers & selected

    So you want the marker if the layer has a parent and is selected, is that correct? This should work:

    var comp = app.project.activeItem;

    var mySelected = comp.selectedLayers;

    for (i = 0; i < mySelected.length; i++) {

    if (mySelected[i].parent != null) {

    var myMarker = new MarkerValue(mySelected[i].parent.name);

    mySelected[i].property("Marker").setValueAtTime(2, myMarker);

    }

    }

  • Another possibility would be to use sourceRectAtTime() and toComp() to establish the corners:

    L = thisComp.layer("square");

    r = L.sourceRectAtTime(time,false);

    ul = L.toComp([r.left,r.top]);

    ur = L.toComp([r.left+r.width,r.top]);

    ll = L.toComp([r.left,r.top+r.height]);

    lr = L.toComp([r.left+r.width,r.top+r.height]);

    xMin = Math.min(ul[0],ur[0],ll[0],lr[0]);

    xMax = Math.max(ul[0],ur[0],ll[0],lr[0]);

  • Dan Ebberts

    March 22, 2022 at 6:23 am in reply to: Change layer source via expression?

    >It’d be nice to be able to set something like thisLayer.source(footage(“blahblah.png”))

    Agreed, it would be nice, but there’s nothing like that, unfortunately.

  • Dan Ebberts

    March 21, 2022 at 2:57 pm in reply to: Change layer source via expression?

    I think the closest you could come would be to include multiple footage layers and use opacity expressions to turn on only the one specified in the CSV.

  • Dan Ebberts

    March 18, 2022 at 4:14 pm in reply to: Use inPoint / outPoint to drive Opacity

    <div>This should work:</div>

    L = thisComp.layer("Layer 1");

    time >= L.inPoint && time < L.outPoint ? 100 : 0

    or, you could do it this way:

    L = thisComp.layer("Layer 1");

    L.active ? 100 : 0

  • Dan Ebberts

    March 17, 2022 at 5:40 pm in reply to: Controling time between keyframes

    I guess you wouldn’t really need the keyframes if they aren’t providing timing or value info, so this should work:

    x1 = thisComp.layer("Camera Settings").effect("Camera In Animation X")(1);

    x2 = thisComp.layer("Camera Settings").effect("Camera Out Animation X")(1);

    t1 = thisComp.layer("Camera Settings").effect("Camera In Animation Time")(1);

    t2 = thisComp.layer("Camera Settings").effect("Camera Out Animation Time")(1);

    ease(time, t1, t2, x1, x2);

  • Dan Ebberts

    March 15, 2022 at 7:19 pm in reply to: Animate object along animated path

    You probably just need to swap out the curly quotes for straight quotes:

    L = thisComp.layer("Shape Layer 1");

    path = L.content("Shape 1").content("Path 1").path;

    pct = L.content("Shape 1").content("Trim Paths 1").end;

    L.toWorld(path.pointOnPath(pct/100,time))

  • Dan Ebberts

    March 14, 2022 at 5:52 pm in reply to: Control opacity with multiple checkbox selections

    Like this maybe:

    L = comp("Language").layer("Language");

    cb1 = L.effect("EN")("Checkbox").value;

    cb2 = L.effect("DE")("Checkbox").value;

    cb3 = L.effect("ES")("Checkbox").value;

    cb1 || cb2 || cb3 ? 100 : 0

Page 95 of 1081

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