Return-Path: Received: from mail-qc0-f177.google.com ([209.85.216.177] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5054050 for AE-List@media-motion.tv; Mon, 29 Apr 2013 06:19:31 +0200 Received: by mail-qc0-f177.google.com with SMTP id u28so2968316qcs.36 for ; Sun, 28 Apr 2013 21:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=G8itQdPM4VojnLj4DfRveh5HI2bqEYBsFw8MJJa4nfM=; b=k1I7xlQ4OVxQmNIqc1wbbRuDvmhSTGzWVZdnINK7SiAqcvEL4EFTdPTR+sFbmXT8B5 zdY3q6PnPOqF059NH8qidY0/lrX58z5xQUDZ0HN9akeUCTBHL4G+U5gkqmG5O0A+gUmX 5e0hHv8iJu5pwFaABep2t05D6QVKvD+wiEJyrt3D91tRSpHFz5vw/9wx0l/mzxQI7MGI qjIYWh+OS9+csrNZMYxIdHTiZlKXKaJUxDaq8Tt1IpC8lYY9vx/RVaNaLFI2KDOV5Ood Wd2okjh2zbb2u2FD2JZ5DqbTrITWoU5DS9LwiOhP3t4FZAmfWluraewqjjYN55z0qbBf 2waQ== MIME-Version: 1.0 X-Received: by 10.229.162.16 with SMTP id t16mr81926qcx.130.1367209679711; Sun, 28 Apr 2013 21:27:59 -0700 (PDT) Received: by 10.229.118.33 with HTTP; Sun, 28 Apr 2013 21:27:59 -0700 (PDT) In-Reply-To: References: Date: Sun, 28 Apr 2013 23:27:59 -0500 Message-ID: Subject: Re: Offset along motion path? From: Brian Behm To: After Effects Mail List Content-Type: multipart/alternative; boundary=f46d0447858f4b289204db784ff8 --f46d0447858f4b289204db784ff8 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hmm. Ill have to mess with it tomorrow. In the short term we switched to simple little color coded circles so that no one would be able to tell which way it was oriented. Sometimes faking it is all you need. ;-) Making the whole thing more complicated was that I have the driver icons as collapsed transformation comps in the master racetrack layer and then I have that comp collapsed in the master comp so that I can control the orientation of everything inside the fake UI screen. Its kind of messy but it works. In the midst of this I'm teaching my junior designer to be a motion artist. You should have seen his eyes glaze over when I started mucking around in the code. I told him as profusely as I could that he wouldn't have to use much more than wiggle(x,y) a great deal of the time. I ended up putting the expression sliders for the motion path following in the master comp. it's pretty sweet being able to drive the animation inside the precomposition without having to switch back to another window. I'll try to remember to post a link once it gets released on the site. Brian On Sunday, April 28, 2013, Dan Ebberts wrote: > Hmmm... To get that expression to work, I=92m guessing you=92d need to = use > the optional time parameter for the layer space transforms and specify th= e > same time you=92re using to sample the null=92s position. So, for example= , if > you=92re getting the null=92s position with valueAtTime(t), you=92d have = to do > the same calculation for t in your orientation expression and then modify > all the transforms to use it, like this: > > fromWorldVec(L.toWorldVec([1,0,0],t),t); > > Hard to say for sure without seeing how you have it set up. > > Dan > > *From:* Brian Behm 'flabbyironman@gmail.com');> > *Sent:* Sunday, April 28, 2013 2:16 PM > *To:* After Effects Mail List 'AE-List@media-motion.tv');> > *Subject:* Re: [AE] Offset along motion path? > > OK. I've got that up and working. I gave the null object motion path a > loopOutDuration so that I could have the driver go around and around the > track. Now the next problem I'm trying to squash is how to get the object > to auto-orient around the path. Normal auto orientation doesn't seem to b= e > working since it's grabbing it's position from the slider instead of > position. > > Dan, I'm looking at your auto-orientation script here > http://forums.adobe.com/message/5196644 > (pasted for convenience) > > > L =3D thisComp.layer("other layer"); > > u =3D fromWorldVec(L.toWorldVec([1,0,0])); > > v =3D fromWorldVec(L.toWorldVec([0,1,0])); > > w =3D normalize(fromWorldVec(L.toWorldVec([0,0,1]))); > > sinb =3D clamp(w[0],-1,1); > > b =3D Math.asin(sinb); > > cosb =3D Math.cos(b); > > if (Math.abs(cosb) > .0005){ > > --=20 not getting enough of my blather? check out http://flabbyironman.blogspot.com or my portfolio at http://behmcreative.com --f46d0447858f4b289204db784ff8 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hmm. Ill have to mess with it tomorrow. In the short term we switched to si= mple little color coded circles=A0so that no one=A0would=A0be able to tell = which way it was oriented. =A0Sometimes faking it is all you need. ;-)=A0
Making the whole thing more complicated was that I have the driv= er icons as collapsed transformation comps in the master racetrack layer an= d then I have that comp collapsed in the master=A0comp so that I can contro= l the orientation of everything inside the fake UI screen.=A0=A0Its kind of= messy but it works.=A0

In the midst of this I'm teaching my j= unior designer to be a motion artist. You should have seen his eyes glaze o= ver=A0when I started mucking around in the code. I told him as profusely as= I could that he wouldn't have to use much more than wiggle(x,y) a grea= t deal=A0of the time.=A0

I ended up putting the expression sliders for the motion pat= h following=A0in the master comp. it's pretty sweet being able to drive= the animation inside the precomposition=A0without having to switch back to= another window. I'll try to remember to post a link once it gets relea= sed on the site.

Brian=A0


On Sunday, April 28, 201= 3, Dan Ebberts wrote:
Hmmm... To get that expression to work, I=92m guessing you=92d need to= use the=20 optional time parameter for the layer space transforms and specify the same= time=20 you=92re using to sample the null=92s position. So, for example, if you=92r= e getting=20 the null=92s position with valueAtTime(t), you=92d have to do the same calc= ulation=20 for t in your orientation expression and then modify all the transforms to = use=20 it, like this:=A0
=A0
fromWorldVe= c(L.toWorldVec([1,0,0],t),t);
=A0<= /div>
Hard to say for sure without seeing how you ha= ve it set=20 up.
=A0
Dan
=A0
From: Brian Behm
Sent: Sunday, April 28, 2013 2:16 PM
Subject: Re: [AE] Offset along motion path?
=A0
OK. I've got that up and working. I gave the null obje= ct motion=20 path a loopOutDuration so that I could have the driver go around and around= the=20 track. Now the next problem I'm trying to squash is how to get the obje= ct to=20 auto-orient around the path. Normal auto orientation doesn't seem to be= working=20 since it's grabbing it's position from the slider instead of positi= on.=A0=20
=A0
Dan, I'm looking at your auto-orientation script here http://forums.ado= be.com/message/5196644
(pasted for convenience)
=A0

L=20 =3D thisComp.layer("other layer");

u=20 =3D fromWorldVec(L.toWorldVec([1,0,0]));

v=20 =3D fromWorldVec(L.toWorldVec([0,1,0]));

w=20 =3D normalize(fromWorldVec(L.toWorldVec([0,0,1])));

sinb=20 =3D clamp(w[0],-1,1);

b=20 =3D Math.asin(sinb);

cosb=20 =3D Math.cos(b);

if=20 (Math.abs(cosb) > .0005){



--
not getting enough of my blather?check out http://flabbyiron= man.blogspot.com
or my portfolio at http://behmcreative.com

--f46d0447858f4b289204db784ff8--