Forum Replies Created

Page 77 of 1081
  • Dan Ebberts

    September 19, 2022 at 3:45 pm in reply to: Controlling timeline with markers?

    It’s not particularly simple to set up, but you can do it. I describe one way here:

    http://www.motionscript.com/design-guide/marker-sync.html

  • Dan Ebberts

    September 19, 2022 at 4:50 am in reply to: Expression to label work area

    Like this:

    c = comp("Comp B");
    m = c.marker;
    d = c.displayStartTime;
    t1txt = m.numKeys > 0 ? timeToFrames(d + m.key(1).time) : "??";
    t2txt = m.numKeys > 1 ? timeToFrames(d + m.key(m.numKeys).time) : "??";
    t1txt + "-" + t2txt
  • Dan Ebberts

    September 19, 2022 at 1:22 am in reply to: Expression to label work area

    See if this helps:

    c = comp("Comp B");
    m = c.marker;
    d = c.displayStartTime;
    t1txt = m.numKeys > 0 ? timeToFrames(d + m.key(1).time) : "??";
    t2txt = m.numKeys > 1 ? timeToFrames(d + m.key(2).time) : "??";
    t1txt + "-" + t2txt
  • Dan Ebberts

    September 16, 2022 at 10:45 pm in reply to: Expression to label work area

    Or, maybe you always want to display the range defined by the Comp B markers with something like this:

    m = comp("Comp B").marker;
    t1txt = m.numKeys > 0 ? timeToFrames(m.key(1).time) : "??";
    t2txt = m.numKeys > 1 ? timeToFrames(m.key(2).time) : "??";
    t1txt + "-" + t2txt
  • Dan Ebberts

    September 16, 2022 at 9:17 pm in reply to: Expression to label work area

    If you had comp markers in Comp B marking the start and end times, a text expression like this in Comp A would display the current frame (within the range – blank if not in the range). I’m not sure that’s what you’re asking, but it might get you close:

    m = comp("Comp B").marker;
    txt = "";
    if (m.numKeys > 1){
    t1 = m.key(1).time;
    t2 = m.key(2).time;
    if (time >= t1 && time <= t2){
    txt = timeToFrames(time);
    }
    }
    txt
  • Dan Ebberts

    September 16, 2022 at 3:48 am in reply to: Working with multi-line text box

    Like this for B:

    thisComp.layer("A").text.sourceText.split("\r")[0]

    and this for C:

    thisComp.layer("A").text.sourceText.split("\r")[1]
  • Dan Ebberts

    September 15, 2022 at 1:17 pm in reply to: 4 digit counter expression help

    Try this:

    num = effect("Slider Control")("Slider");
    num = "" + Math.round(num/1)*1;
    while (num.length < 4) num = "0" + num
  • Dan Ebberts

    September 15, 2022 at 6:34 am in reply to: Expression to label work area

    Expressions don’t have access to work area info. Scripting does, but with a script you’d have to run it every time you need it to update. There may not be a good solution.

  • Dan Ebberts

    September 13, 2022 at 12:01 am in reply to: Auto Orient Y only – remain parallel horizontally

    I think part of the problem is that it’s not hard to conjure up a situation where just rotating on the y axis can’t make the top edge appear horizontal in the camera view, so I think it may be a problem with no solution in some situations.

  • Dan Ebberts

    September 12, 2022 at 6:11 pm in reply to: Sorting returned numerical values of a ‘For Loop’

    This seems to work, but I’m not sure if it’s what you’re after:

    n = [];
    for (i = 1; i < 5; i++){
    n.push(thisComp.layer("Control").effect(i)(1));
    }
    n.sort(function(a,b){return a-b})
Page 77 of 1081

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