Created
August 11, 2019 08:40
-
-
Save Saw-mon-and-Natalie/4877b9c18ea0003cda76e7fff5d9f0f6 to your computer and use it in GitHub Desktop.
Persistent Random Position on Marker / Adobe After Effects CC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
temp = thisComp.layer("Null 1").transform.anchorPoint[0]; | |
markers = thisComp.layer("Null 1").marker | |
idx = markers.nearestKey(time).index; | |
if(markers.nearestKey(time).time > time) { idx--; } | |
if(idx < 1) { idx = 1; } | |
var seed = time; | |
if(temp == 50) { | |
seed = time; | |
} | |
seedRandom(idx, timeless = true); | |
temp_x = random(thisComp.width); | |
temp_y = random(thisComp.height); | |
[temp_x, temp_y] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment