Got a quick one here.. something i'm probably just either not familiar with, or I'm thinking too hard about it.
I've got a large grid wall of squares with people's faces in them. Each face panel is the same precomp with this expression in the time-remap attribute.
seedRandom(index,true);
myFrame = Math.floor(random(303));
framesToTime(myFrame)
Basically this grabs a random frame from the precomp, which is about 10 seconds long, and shows it as a freeze frame for that particular layer.
I've got 125 face panels all using this expression, and for the most part it works wonderfully.. they all have random faces on them, and if I add another layer, the random seed changes and I get a whole new slew of faces (which doesn't matter in this instance, but i could see that as a problem in others)
My issue is, even though I've got over 300 frames (each frame with a new face) in my precomp.. the randomness is grabbing duplicates.. in some cases 2-3 pairs of duplicates over the course of the 125 it chooses.
Anyone know of a way to append this script so that it does not choose something it has already?
I'd even be fine if there were a way to use an expression to grab frames sequentially from the precomp and then I could just hand choose to make sure there's no duplicates in the first 125 frames.
I think i might just be overthinking this, but I'm not sure if I've seen a "check for duplicate and don't use" sort of expression before.
thanks in advance.
--
///Greg Balint
//Art Director / Motion Graphics Designer
/321.514.4839
delRAZOR.com/