Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Tunc Erenkus on September 13, 2019 at 11:04 am

    Hi,

    when l try to drive this code (on source text), the result is always ‘else’. Can you please show me whats my mistake.

    Thanks

    a=inPoint;
    t=time;
    if (a=t) txt = "equal";
    if (a>t) txt = "-time";
    if (a<t) txt = "+time"
    else {
    txt = "else"
    }
    text.sourceText + txt + " " + time + " " + inPoint

    Tunc Erenkus replied 6 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 13, 2019 at 1:37 pm

    I’m not sure what you’re trying to do exactly, but I think it would be more like this:

    a=inPoint;
    t=time;
    if (t < a) txt = “-time”
    else if (t == a) txt = “equal”
    else txt = “+time”;
    value + txt + ” ” + time + ” ” + inPoint

    however, the “-time” will never show up because it happens before the layer’s inPoint.

    Dan

  • Tunc Erenkus

    September 14, 2019 at 7:49 am

    Thank you for your interest.

    Actually, I am trying to solve this issue: My first layer’s x position is looping and second layer’s x position linked it. The inPoint of second layer is random. I am trying to grab the first layer’s x value in the frame of second layer’s inPoint.

    I thought I might solve it with if command. Better idea?

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