Forum Replies Created

Page 1020 of 1081
  • Expressions execute at each frame and there is no way to pass data from one frame to the next. The work-arounds depend on what it is that you’re trying to do.

    If all you want to do is generate a static random position, you could do it this way:

    seedRandom(index,true);
    x = Math.floor(random(thisComp.width));
    y = Math.floor(random(thisComp.height));
    z = Math.floor(random(-300, 300));
    [x,y,z];

    Dan

  • Expressions execute at each frame and there is no way to pass data from one frame to the next. The work-arounds depend on what it is that you’re trying to do.

    If all you want to do is generate a static random position, you could do it this way:

    seedRandom(index,true);
    x = Math.floor(random(thisComp.width));
    y = Math.floor(random(thisComp.height));
    z = Math.floor(random(-300, 300));
    [x,y,z];

    Dan

  • Dan Ebberts

    June 8, 2006 at 1:23 pm in reply to: another layer marker / expressions question

    You get the number of markers this way:

    layer.marker.numKeys

    (or just marker.numKeys if the expression is applied to the layer with the markers)

    You’d use the marker index this way:

    n = 5;
    t = layer.marker.key(n).time;

    Dan

  • Dan Ebberts

    June 8, 2006 at 1:23 pm in reply to: another layer marker / expressions question

    You get the number of markers this way:

    layer.marker.numKeys

    (or just marker.numKeys if the expression is applied to the layer with the markers)

    You’d use the marker index this way:

    n = 5;
    t = layer.marker.key(n).time;

    Dan

  • Dan Ebberts

    June 7, 2006 at 1:00 am in reply to: layer markers and expressions

    This should give you a new random number between 1 and 100 at each marker;

    minNum = 1;
    maxNum = 100;

    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time){
    n–;
    }
    }

    seedRandom(n,true);
    random(minNum,maxNum)

    Dan

  • Dan Ebberts

    June 7, 2006 at 1:00 am in reply to: layer markers and expressions

    This should give you a new random number between 1 and 100 at each marker;

    minNum = 1;
    maxNum = 100;

    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time){
    n–;
    }
    }

    seedRandom(n,true);
    random(minNum,maxNum)

    Dan

  • Dan Ebberts

    May 25, 2006 at 10:27 pm in reply to: expressions- translating back to 5.0

    The ones I see that need changing are this_comp, radians_to_degrees, in_point, and out_point.

    Is that the expression in its entirety? It doesn’t look right.

    Dan

  • Dan Ebberts

    May 25, 2006 at 10:27 pm in reply to: expressions- translating back to 5.0

    The ones I see that need changing are this_comp, radians_to_degrees, in_point, and out_point.

    Is that the expression in its entirety? It doesn’t look right.

    Dan

  • Dan Ebberts

    May 22, 2006 at 4:49 pm in reply to: Expression/Script needed

    Easy enough to do, just time-consuming. It’s not like whipping out an expression that will work for any layer. There’s stuff that has to be taylored to your project. The script has to know how to identify the sequences and the logo in the project window, and the comp parameters.

    It would be difficult to test without your project and media files.

    Dan

  • Dan Ebberts

    May 22, 2006 at 4:49 pm in reply to: Expression/Script needed

    Easy enough to do, just time-consuming. It’s not like whipping out an expression that will work for any layer. There’s stuff that has to be taylored to your project. The script has to know how to identify the sequences and the logo in the project window, and the comp parameters.

    It would be difficult to test without your project and media files.

    Dan

Page 1020 of 1081

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