597 posts THINK DIFFERENT
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Won a competition
  • Made it to the Authors' Hall of Fame
+8 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 :)

152 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
didgi says
5257 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+11 more
felt_tips 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

597 posts THINK DIFFERENT
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Won a competition
  • Made it to the Authors' Hall of Fame
+8 more
Generator says

Brilliant! Thank you felt.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by