Return-Path: Received: from mail-wg0-f50.google.com ([74.125.82.50] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5284054 for AE-List@media-motion.tv; Tue, 12 Nov 2013 23:24:48 +0100 Received: by mail-wg0-f50.google.com with SMTP id k14so5087976wgh.5 for ; Tue, 12 Nov 2013 14:26:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=WZdVGfJqc5tIZCgOI2BhPPOEI9Rs+7TSf7BqecMLUTI=; b=PnyqLse307h3SRGg1YQs6wlvR/fsZ41oSlhuLPpjLhJEKOe/QYx5rES9DNPzd6oTh0 XfrG5rqbfWS1dnmKaBaHTW1rS8sQo4tkhMDsBdl0C7fyvyQZ5N2o1YXuxYlRcT0sebKQ CXezz0FJuiB9lro60YOR3lexYX8FXde1A9mg14sq8+4Rw1JGKFAK32wz4h5v3WP2ACUy z4Zybq6Wwg6COYI6DUywuPt9Pcho+yMqLLYNu0W+3Rzyh6xyfStlpTEq+li0Q+9gubXv ZVCTN0YFKHUzGkvQr6fLt41Ov3m681KLMzQuo8TmustGItIvAmWEavRXOtpDFej7XBIL 3BDg== MIME-Version: 1.0 X-Received: by 10.180.94.162 with SMTP id dd2mr14575309wib.38.1384295194579; Tue, 12 Nov 2013 14:26:34 -0800 (PST) Received: by 10.194.71.163 with HTTP; Tue, 12 Nov 2013 14:26:34 -0800 (PST) In-Reply-To: References: Date: Tue, 12 Nov 2013 17:26:34 -0500 Message-ID: Subject: Re: [AE] freeze frame from precomp - expression needed to not get duplicates From: rendernyc To: After Effects Mail List Content-Type: multipart/alternative; boundary=f46d04462ea8565e6604eb025708 --f46d04462ea8565e6604eb025708 Content-Type: text/plain; charset=ISO-8859-1 couldnt you just use the index number as the variable for your timeremap? 1st layer frame 1, 2nd frame 2... On Tue, Nov 12, 2013 at 5:18 PM, Greg Balint wrote: > 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/ > > -- danny princz vimeo.com/rendernyc --f46d04462ea8565e6604eb025708 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
couldnt you just use the index number as the variable for = your timeremap?

1st layer frame 1, 2nd frame 2...=A0


On Tu= e, Nov 12, 2013 at 5:18 PM, Greg Balint <delrazoraelist@gmail.com> wrote:
Got a quick one here.. some= thing i'm probably just either not familiar with, or I'm thinking t= oo hard about it.

I've got a large grid wall of squares with people's = faces in them. =A0Each face panel is the same precomp with this expression = in the time-remap attribute.

seedRandom(index,true);
myFrame =3D 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 whol= e 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 dupl= icates.. in some cases 2-3 pairs of duplicates over the course of the 125 i= t chooses.


Anyone know of a way to append this scri= pt so that it does not choose something it has already?



--
--f46d04462ea8565e6604eb025708--