From: "Phil Spitler" Received: from mail-pl0-f52.google.com ([209.85.160.52] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 6420317 for AE-List@media-motion.tv; Fri, 16 Mar 2018 21:11:20 +0100 Received: by mail-pl0-f52.google.com with SMTP id m22-v6so6550489pls.5 for ; Fri, 16 Mar 2018 13:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bonfirelabs-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=zgHtOoY2binmEmt88hbb3RwsWF5yMIVYstrQWY+oadw=; b=O39frDsnYfpWdS7ArY80QrOrZuC9A0gdIDck0Rciubt1nnMbYdj7MbAa5BTDzAvIza 3NEcZnpIXH4dxHkGP9Hjpy5iNSKp+UodZFtp290fcvGYf9JiYq2gAAiOkxMvYsEdXncs /MWgvNUuq/cK8YMcyMw+w2wERUn7u3DoJ670Fn9zRRTLCZw0xyINi72tRs1RSgwvpbyA 5NB6fDlJ1I8xk+Q8tcSS9/ioQOdKXmgi6Y8sIpelpi7wb/Z7/qxJxrHs/2AiCPboNviT YoROAtLCL+RE/ncfpIwNueDwxaTAkYYtCMgBl5tAK3t9iS+LM3ZTF4qZ1pTizOeMch7B F/JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=zgHtOoY2binmEmt88hbb3RwsWF5yMIVYstrQWY+oadw=; b=Not/s0WbjysaZEi68qu1M0Svf7Jft91e7y4cDyBGi0Anjbb4P8+DMiXU3IxYhJv+1z AYgMk/Llpbk974GJk/jfAM9N8NGQNuKXSMaEVOA875QrYUd36dTKooBAeVVx5vB4d6HB WdKVBx4q9HPrWUtJA200gWSm1vCFw6XKlznbcixDI0ukkjotSzymxICxUmZF6FzczCFI 5jmAaBPHd7r2O/dqu35bDNZPbKKD0K9luBrqk1HRGFqGrqNx2MnCetFip5P0zkx52VHV Q9SO4LlbzGZ8XgdmQwoU1fMmt3hZCB+J7gbnwKSWDBE1jWs8v48f6hl2Fcaw3Jr53Nry kScg== X-Gm-Message-State: AElRT7EVkRsppfBh1dhVFZMDJt+mwxQ5zSyOSKW6NqnaCk4eFPH7ip3y 6bt/g6gBsUX31BVXuAMdzLQGxqlDfWk= X-Google-Smtp-Source: AG47ELsMzRMKRdcnYMOBPvYCmEZO6K+U4u2Gqu4fxiK9OQRuHJ0idQKrE1Pkj6/d0m7JZy3CHicCVg== X-Received: by 2002:a17:902:a589:: with SMTP id az9-v6mr3383451plb.283.1521231347640; Fri, 16 Mar 2018 13:15:47 -0700 (PDT) Return-Path: Received: from [10.0.0.249] ([50.225.3.50]) by smtp.gmail.com with ESMTPSA id i125sm16948039pfe.176.2018.03.16.13.15.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Mar 2018 13:15:46 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_C1AEE88A-79F4-4842-A642-7D453834ED55" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [AE] Pixel motion speed ... Date: Fri, 16 Mar 2018 13:15:45 -0700 References: To: After Effects Mail List In-Reply-To: Message-Id: <097B314F-DD6B-4AEF-B3C9-FC7EBBDC94F3@bonfirelabs.com> X-Mailer: Apple Mail (2.3273) --Apple-Mail=_C1AEE88A-79F4-4842-A642-7D453834ED55 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Should be easy enough to set up in 3 steps, below is some pseudo code. Loop through every pixel=20 { Use the sampleImage expression to sample the color of the pixel Convert the RGB to HSV Use the V value (luminance) as a multiplier for the position } This might be a very slow way to do things as it will sample the image = on every frame, maybe there is a more efficient way to do it, Phil Phil Spitler Creative Technologist t 415.394.8200 c 415.571.3139 = = = = > On Mar 16, 2018, at 12:53 PM, Gordon wrote: >=20 > I=E2=80=99d like to animate a still photo=E2=80=99s pixels based on a = gradient map where their speed is based on the value. Example: white = being faster than gray, and gray faster than dark gray. Black would be = no motion at all. Imagine that the image is similar to Starry Night by = Van Gogh.=20 >=20 > Any ideas or scripts that may do this? > -g > +---End of message---+ > To unsubscribe send any message to --Apple-Mail=_C1AEE88A-79F4-4842-A642-7D453834ED55 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Should be easy enough to set up in 3 steps, below is some = pseudo code.

Loop = through every pixel 
{
Use = the sampleImage expression to sample the color of the pixel
Convert the RGB to HSV
Use the V value = (luminance) as a multiplier for the position
}

This might be a very slow way to do things as it will sample = the image on every frame, maybe there is a more efficient way to do = it,

Phil






3D"bonfire-logo"
Phil = Spitler  Creative = Technologist
t  415.394.8200  c  415.571.31393D"linked-in"3D"facebook"3D"twitter"3D"instagram"





On Mar 16, 2018, at 12:53 PM, Gordon <AE-List@media-motion.tv> wrote:

I=E2=80= =99d like to animate a still photo=E2=80=99s pixels based on a gradient = map where their speed is based on the value.  Example: white being = faster than gray, and gray faster than dark gray.  Black would be = no motion at all.  Imagine that the image is similar to Starry = Night by Van Gogh.

Any ideas or scripts = that may do this?
-g
+---End of = message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>

= --Apple-Mail=_C1AEE88A-79F4-4842-A642-7D453834ED55--