Forum Replies Created

Page 1036 of 1081
  • Dan Ebberts

    February 1, 2006 at 8:19 pm in reply to: expressions help…

    This version should be 5.5 friendly (didn’t try it though):

    
    
    minDelay = 3;  // minimum delay (frames)
    maxDelay = 15; // maximum delay (franes)
    maxX = 5; // max x offset (pixels)
    maxY = 15 // max y offset (pixels)
    
    end = 0;
    j = 0;
    while ( time >= end){
     j ++;
     seed_random(j,true);
     end += random(minDelay,maxDelay)*this_comp.frame_duration;
    }
    value + random([-maxX,-maxY],[maxX,maxY]);
    
    

    Dan

  • Dan Ebberts

    February 1, 2006 at 7:35 pm in reply to: expressions help…

    Something like this might do it:

    
    
    minDelay = 3;  // minimum delay (frames)
    maxDelay = 15; // maximum delay (franes)
    maxX = 5; // max x offset (pixels)
    maxY = 15 // max y offset (pixels)
    
    end = 0;
    j = 0;
    while ( time >= end){
     j ++;
     seedRandom(j,true);
     end += random(minDelay,maxDelay)*thisComp.frameDuration;
    }
    value + random([-maxX,-maxY],[maxX,maxY]);
    
    
    

    Dan

  • Dan Ebberts

    February 1, 2006 at 7:35 pm in reply to: expressions help…

    Something like this might do it:

    
    
    minDelay = 3;  // minimum delay (frames)
    maxDelay = 15; // maximum delay (franes)
    maxX = 5; // max x offset (pixels)
    maxY = 15 // max y offset (pixels)
    
    end = 0;
    j = 0;
    while ( time >= end){
     j ++;
     seedRandom(j,true);
     end += random(minDelay,maxDelay)*thisComp.frameDuration;
    }
    value + random([-maxX,-maxY],[maxX,maxY]);
    
    
    

    Dan

  • Dan Ebberts

    January 30, 2006 at 8:04 pm in reply to: how to alter expression to affect only one axis

    Try changing the second line to:

    [temp,value[1]]

    Dan

  • Dan Ebberts

    January 30, 2006 at 8:04 pm in reply to: how to alter expression to affect only one axis

    Try changing the second line to:

    [temp,value[1]]

    Dan

  • Dan Ebberts

    January 28, 2006 at 10:58 pm in reply to: Motionscript question for Dan Ebberts

    Actually, that was a combintion of scripting and expressions. The script starts with an unscrambled puzzle and randomly scrambles it one move at a time, keeping track of the order of moves it used. It then creates a Position expressionsfor each piece, with the proper move sequence to unscramble the puzzle.

    Dan

  • Dan Ebberts

    January 28, 2006 at 10:58 pm in reply to: Motionscript question for Dan Ebberts

    Actually, that was a combintion of scripting and expressions. The script starts with an unscrambled puzzle and randomly scrambles it one move at a time, keeping track of the order of moves it used. It then creates a Position expressionsfor each piece, with the proper move sequence to unscramble the puzzle.

    Dan

  • Dan Ebberts

    January 26, 2006 at 8:52 pm in reply to: Mask animation via expressions

    Sure, but you’d have to rerun the script any time you made a change to the controler. You’d keyframe the point control to the values you wanted and then run the script to set the position of the mask vertex to the same values.

    Dan

  • Dan Ebberts

    January 26, 2006 at 8:52 pm in reply to: Mask animation via expressions

    Sure, but you’d have to rerun the script any time you made a change to the controler. You’d keyframe the point control to the values you wanted and then run the script to set the position of the mask vertex to the same values.

    Dan

  • Dan Ebberts

    January 26, 2006 at 7:50 pm in reply to: Mask animation via expressions

    You’re correct – expressions can’t access mask vertices. You can do it with a script though.

    Dan

Page 1036 of 1081

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