Aris Blevins
Forum Replies Created
-
That I would like to see just as a learning tool. I think I have started to parse out the functionality of your last bit of code (no way I could have implemented it from scratch still, but it’s a start) and it would be good to re-blow my mind so that I don’t get too confident.
Aris
-
That I would like to see just as a learning tool. I think I have started to parse out the functionality of your last bit of code (no way I could have implemented it from scratch still, but it’s a start) and it would be good to re-blow my mind so that I don’t get too confident.
Aris
-
Good lord!!! That is so much more complicated then I would have possibly thought. Fantastic though. I’m going to spend a little while deciphering what exacly you did here.
Thank you so much for your help.
Aris
-
Good lord!!! That is so much more complicated then I would have possibly thought. Fantastic though. I’m going to spend a little while deciphering what exacly you did here.
Thank you so much for your help.
Aris
-
Dan,
This certainly simplifies my code, but I am still getting layers sitting on top of each other. Am I mistaken in that the seedRandom function calls a different seed for every layer? I’ll post what I have for conversations sake, but if I’m totally wrong in every sense of the word, just let me know and I’ll head back to the drawing board.
posX= [130, 284, 438, 591, 745];
posY = [132, 294, 455, 617, 778];
holdTime = .75;
seed = Math.floor(time/holdTime)
seed1 = i
for (var i = 1; i <= thisComp.numLayers; i++){ match = false; //assume no layer's position matches if (i == index) continue; //skip self if (position == thisComp.layer(i).position){ match = true; // oops - found a layer with same position break; } } if (match) { seedRandom(seed1, true); [posX[Math.floor(random(5))],posY[Math.floor(random(5))]] }else{ seedRandom(seed, true); [posX[Math.floor(random(5))],posY[Math.floor(random(5))]] } -
Dan,
This certainly simplifies my code, but I am still getting layers sitting on top of each other. Am I mistaken in that the seedRandom function calls a different seed for every layer? I’ll post what I have for conversations sake, but if I’m totally wrong in every sense of the word, just let me know and I’ll head back to the drawing board.
posX= [130, 284, 438, 591, 745];
posY = [132, 294, 455, 617, 778];
holdTime = .75;
seed = Math.floor(time/holdTime)
seed1 = i
for (var i = 1; i <= thisComp.numLayers; i++){ match = false; //assume no layer's position matches if (i == index) continue; //skip self if (position == thisComp.layer(i).position){ match = true; // oops - found a layer with same position break; } } if (match) { seedRandom(seed1, true); [posX[Math.floor(random(5))],posY[Math.floor(random(5))]] }else{ seedRandom(seed, true); [posX[Math.floor(random(5))],posY[Math.floor(random(5))]] } -
Are you getting the Invalid error? I’ve had issues with Illustrator files coming in as dots, and found that reinstalling After Effects solves it.
Aris