594 posts THINK DIFFERENT
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Won a Competition
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Australia
+2 more
Generator says

Hope someone can give me a tip…

I’ve got this simple expression which does the trick except I need to be able to control the speed, for example, rather than every frame, perhaps every second, fourth, fifth frame…

Or even better, something like ‘change layer position between these X and Y ranges every random number of frames between n1 and n2.’

X=position[0]+random(900,-300); Y=position[1]+random(-100,500); [X,Y]

It’s not really practical in this case to pre-compose the layer and use, say, Posterize Time.

TIA :)

144 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • Switzerland
didgi says
4792 posts
  • Elite Author
  • Community Moderator
  • Sold between 100 000 and 250 000 dollars
  • Author had a File in an Envato Bundle
  • Beta Tester
  • Has been a member for 4-5 years
  • United Kingdom
+5 more
felt_tips Volunteer moderator says
Generator said
Hope someone can give me a tip…

I’ve got this simple expression which does the trick except I need to be able to control the speed, for example, rather than every frame, perhaps every second, fourth, fifth frame…

Or even better, something like ‘change layer position between these X and Y ranges every random number of frames between n1 and n2.’

X=position[0]+random(900,-300); Y=position[1]+random(-100,500); [X,Y]

It’s not really practical in this case to pre-compose the layer and use, say, Posterize Time.

TIA :)

use a seedRandom and then for the seed a function based on the time.

tFrame = timeToFrames(time);
tSeed = Math.floor(tFrame/3);
seedRandom(tSeed,true);
position + [random(-300,900), random(-100, 500)];

//gives a random position every third frame

594 posts THINK DIFFERENT
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Won a Competition
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Australia
+2 more
Generator says

Brilliant! Thank you felt.

by
by
by
by
by
by