Forum Replies Created

Page 66 of 1081
  • I think this will work as long as you don’t go past 48 degrees or so (not sure if that’s an issue):

    a = degreesToRadians(rotation);
    len = (thisComp.height/2)/Math.cos(a) - (value[0]/2)*Math.tan(a);
    [value[0],len*2]
  • Dan Ebberts

    November 25, 2022 at 10:36 pm in reply to: Weird sourceRectAtTime bug… or is it?

    Do you have it set up so that the Category layer doesn’t start at time = 0? If so, try changing this line:

    b = L.sourceRectAtTime(time, false);

    to this:

    b = L.sourceRectAtTime(time - L.startTime, false);

  • Dan Ebberts

    November 25, 2022 at 9:41 pm in reply to: Weird sourceRectAtTime bug… or is it?

    Understood. In playing around (and trying to guess how you have your comp organized) I couldn’t get the text to work until I made that change to your expression, after which I started getting expected results from sourceRectAtTime(), so there may be a connection.

  • Dan Ebberts

    November 25, 2022 at 6:29 pm in reply to: Weird sourceRectAtTime bug… or is it?

    I’m kind of shooting in the dark here, but it seems like this line:

    if ((m.outPoint <= time) && (n.inPoint >= time)) {

    should be like this:

    if ((m.inPoint <= time) && (n.inPoint >= time)) {

  • Dan Ebberts

    November 25, 2022 at 5:43 pm in reply to: Weird sourceRectAtTime bug… or is it?

    Can you post a screen shot of your timeline, showing how you have the layers arranged?

  • Dan Ebberts

    November 25, 2022 at 12:00 am in reply to: Parametric or Bezier

    I think all the parametric ones have match names that you could look for, like ADBE Vector Shape – Ellipse”.

  • Dan Ebberts

    November 24, 2022 at 11:41 pm in reply to: sourceText – only copies first line?!

    >Is this normal?

    No, it should copy all the text. There must be something else going on. Can you post a screen shot of how you have things set up?

  • Dan Ebberts

    November 24, 2022 at 7:59 pm in reply to: Expression to make texts grow in size

    The only think I can think of would be to add a Scale Animation and set the Scale amount to your maximum size, add an Expression Selector (you can then delete the Range Selector) and add a Tracking property to the Animator so that tracking increases as the scale goes up. You might need to fiddle with the Expression Selector’s Amount expression if you don’t like how the size progresses from small to large.

  • Ah, I hadn’t noticed that your layers have been time stretched to 3.3%, so you’d have to factor that into the calculation of how long to set the duration of the source comp.

  • Dan Ebberts

    November 22, 2022 at 10:57 pm in reply to: Change precomp duration and inPoint of following precomps

    This is very simplified and very specific to your example, but hopefully it gives you the idea:

    var mainComp = app.project.activeItem;
    var two = mainComp.layer("Two");
    two.source.duration = 2;
    two.outPoint = 3;
    var three = mainComp.layer("Three");
    three.startTime = 3;
    var twoComp = two.source;
    for (var i = 1; i <= twoComp.numLayers; i++){
    twoComp.layer(i).outPoint = 2;
    }
Page 66 of 1081

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