<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:dtvmedia="http://participatoryculture.org/RSSModules/dtv/1.0"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>the funklab &#187; after effects</title>
	<atom:link href="http://thefunklab.net/blog/category/after-effects/feed/" rel="self" type="application/rss+xml" />
	<link>http://thefunklab.net/blog</link>
	<description>making videos with simon mcrae</description>
	<lastBuildDate>Wed, 09 Feb 2011 23:59:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<!-- podcast_generator="podPress/8.5" -->
		<copyright>&#xA9; </copyright>
		<managingEditor>simon@thefunklab.net ()</managingEditor>
		<webMaster>simon@thefunklab.net</webMaster>
		<category></category>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>making videos with simon mcrae</itunes:summary>
		<itunes:author></itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name></itunes:name>
			<itunes:email>simon@thefunklab.net</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://thefunklab.net/blog/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://thefunklab.net/blog/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>the funklab</title>
			<link>http://thefunklab.net/blog</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>Expressions, part 3</title>
		<link>http://thefunklab.net/blog/2007/expressions-part-3/</link>
		<comments>http://thefunklab.net/blog/2007/expressions-part-3/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 11:58:14 +0000</pubDate>
		<dc:creator>simon mcrae</dc:creator>
				<category><![CDATA[after effects]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://thefunklab.net/blog/?p=43</guid>
		<description><![CDATA[So then, the expression to make a layer&#8217;s (Jedi) opacity to the distance that a roving camera is away from it is&#8230; a = thisComp.layer("Roving Camera").pointOfInterest[0]; b = thisComp.layer("Roving Camera").pointOfInterest[1]; c = thisComp.layer("Roving Camera").pointOfInterest[2]; d = thisComp.layer("Jedi").position[0]; e = thisComp.layer("Jedi").position[1]; f = thisComp.layer("Jedi").position[2]; g = thisComp.layer("Start").pointOfInterest[0]; h = thisComp.layer("Start").pointOfInterest[1]; i = thisComp.layer("Start").pointOfInterest[2]; x = Math.pow(a-d, [...]]]></description>
			<content:encoded><![CDATA[	<p>So then, the expression to make a layer&#8217;s (Jedi) opacity to the distance that a roving camera is away from it is&#8230;<br />
<code>a = thisComp.layer("Roving Camera").pointOfInterest[0];<br />
b = thisComp.layer("Roving Camera").pointOfInterest[1];<br />
c = thisComp.layer("Roving Camera").pointOfInterest[2];</code><code><br />
d = thisComp.layer("Jedi").position[0];<br />
e = thisComp.layer("Jedi").position[1];<br />
f = thisComp.layer("Jedi").position[2];<br />
g = thisComp.layer("Start").pointOfInterest[0];<br />
h = thisComp.layer("Start").pointOfInterest[1];<br />
i = thisComp.layer("Start").pointOfInterest[2];</code></p>

	<p><code>x = Math.pow(a-d, 2)+Math.pow(b-e, 2)+Math.pow(c-f, 2);<br />
x = Math.sqrt(x);<br />
m =  Math.pow(d-g, 2)+Math.pow(e-h, 2)+Math.pow(f-i, 2);<br />
m = Math.sqrt(m);</code></p>

	<p><code>x = x / m;</code><code><br />
x = x * 100;<br />
x = 100 - x;</code></p>

	<p><code>if(x&lt;10){<br />
x=10<br />
}</code></p>
 ]]></content:encoded>
			<wfw:commentRss>http://thefunklab.net/blog/2007/expressions-part-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Expressions, part 2</title>
		<link>http://thefunklab.net/blog/2007/expressions-part-2/</link>
		<comments>http://thefunklab.net/blog/2007/expressions-part-2/#comments</comments>
		<pubDate>Fri, 02 Feb 2007 10:01:25 +0000</pubDate>
		<dc:creator>simon mcrae</dc:creator>
				<category><![CDATA[after effects]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://thefunklab.net/blog/?p=42</guid>
		<description><![CDATA[Alright. What we know is where the camera starts and ends. In After Effects, all the elements in 3D space have an x, y and z position, which is written like this thisComp.layer("Roving Camera").position[0, 1, 2] thisComp &#8212;the selected composition layer("Roving Camera") &#8212; name of layer (which was actually a &#8220;virtual camera&#8221;) position &#8212; the [...]]]></description>
			<content:encoded><![CDATA[	<p><a href="http://www.flickr.com/photos/thefunklab/376241869/" title="Photo Sharing"><img src="http://farm1.static.flickr.com/165/376241869_9364fd4fe9.jpg" width="398" height="500" alt="View from top of virtual 'world'" /></a></p>

	<p>Alright.</p>

	<p>What we know is where the camera starts and ends. In After Effects, all the elements in 3D space have an x, y and z position, which is written like this</p>

	<p><code>thisComp.layer("Roving Camera").position[0, 1, 2] </code></p>

	<p><code>thisComp </code>&#8212;the selected composition<br />
<code>layer("Roving Camera") </code>&#8212; name of layer (which was actually a &#8220;virtual camera&#8221;)<br />
<code>position </code>&#8212; the attribute we are editing<br />
<code>[0, 1, 2] </code>&#8212; the three elements in a position attribute, that is, x y and z.</p>

	<p>So, if I have a layer named &#8216;Han Solo&#8217; and i wanted to make the variable &#8216;t&#8217; its y position I would write</p>

	<p><code>t = thisComp.layer("Han Solo").position[1] </code></p>

	<p>Or, if I have a layer named &#8216;Ghengis&#8217; and i wanted to make the variable &#8216;t&#8217; its z position I would write</p>

	<p><code>t = thisComp.layer("Ghengis").position[2] </code></p>

	<p>So now we want the opacity of a layer (lets call it Jedi) to be proportional to how far away the Roving Camera is. We know the start point of the Roving Camera (an x, y, z coordinate) and we know its end point (and x, y, z coordinate in front of layer Jedi)</p>

	<p>Now how to we find the distance between two points?</p>

	<p><a href="http://www.flickr.com/photos/thefunklab/376241934/" title="Photo Sharing"><img src="http://farm1.static.flickr.com/164/376241934_5fc8d8a1d9.jpg" width="500" height="332" alt="Finding distance between two points." /></a></p>

	<p>And so what about a z point? Well, the equation for that is</p>

	<p>Distance between two points in 3D space = <a href="http://www.flickr.com/photos/thefunklab/377304461/" title="Photo Sharing"><img src="http://farm1.static.flickr.com/182/377304461_8b5770296f_m.jpg" width="240" height="36" alt="equation.jpg" /></a></p>

	<p>So now we know the distance between the Roving Camera and layer Jedi.</p>

	<p>in After Effects expression language this is:<br />
<code><br />
a = thisComp.layer("Roving Camera").pointOfInterest[0];<br />
b = thisComp.layer("Roving Camera").pointOfInterest[1];<br />
c = thisComp.layer("Roving Camera").pointOfInterest[2];<br />
</code><br />
<code><br />
d = thisComp.layer("Jedi").position[0];<br />
e = thisComp.layer("Jedi").position[1];<br />
f = thisComp.layer("Jedi").position[2];<br />
</code><br />
<code><br />
x = Math.pow(a-d, 2)+Math.pow(b-e, 2)+Math.pow(c-f, 2);<br />
x = Math.sqrt(x);<br />
</code><br />
(I&#8217;m using the Camera&#8217;s Point of Interest value instead of position as I what the layer Jedi to be fully opaque when the camera is in front of it rather than being on top of it. )</p>

	<p>Now, what i did next was do another pythagorean distance equation, this time with a layer at the start position and the layer Jedi<br />
<code><br />
g = thisComp.layer("Start").pointOfInterest[0];<br />
h = thisComp.layer("Start").pointOfInterest[1];<br />
i = thisComp.layer("Start").pointOfInterest[2];<br />
</code><br />
<code><br />
m =  Math.pow(d-g, 2)+Math.pow(e-h, 2)+Math.pow(f-i, 2);<br />
m = Math.sqrt(m);<br />
</code></p>

	<p>Now I&#8217;ve got two distances, the total distance (m) and the distance of the camera to the final layer Jedi (x)</p>

	<p>I can express the camera distance as a percentage of the final distance<br />
<code><br />
x = x / m;</code><br />
<code><br />
x = x * 100;<br />
</code></p>

	<p>And because I want the end to be 100% opaque, I subtract the total amount by the traveled distance.<br />
<code><br />
x = 100 - x;<br />
</code></p>

	<p>Now what we found was that we wanted to slightly see all the objects at the start, so I made a condition that the layer Jedi is always 10% opaque.<br />
<code><br />
if(x&lt;10){<br />
x=10<br />
}</p>
	<p></code></p>
 ]]></content:encoded>
			<wfw:commentRss>http://thefunklab.net/blog/2007/expressions-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Expressions, part 1</title>
		<link>http://thefunklab.net/blog/2007/expressions-part-1/</link>
		<comments>http://thefunklab.net/blog/2007/expressions-part-1/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 06:07:35 +0000</pubDate>
		<dc:creator>simon mcrae</dc:creator>
				<category><![CDATA[after effects]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://thefunklab.net/blog/?p=41</guid>
		<description><![CDATA[For the new promo dvd for Proeye Video Production, we decided to totally revamp the menu design. Going from a static look to a 3D environment was a pretty big leap, and meant that we would have to look in to using software capable of dealing with it. I decided on After Effects, as I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[	<p>For the new promo dvd for Proeye Video Production, we decided to totally revamp the menu design.</p>

	<p>Going from a static look to a 3D environment was a pretty big leap, and meant that we would have to look in to using software capable of dealing with it. I decided on After Effects, as I&#8217;m pretty familiar with it and have used its 3D tools in the past.</p>

	<p>What is really cool about it, that i only really discovered recently was Expressions. Expressions are like little scripts that changes a layer&#8217;s property.  You can reference other layer&#8217;s properties and there is a whole range of math tools to help you out.</p>

	<p>For instance, I had a whole bunch of buttons for the <span class="caps">DVD</span> which I needed to see when designing, but then turn them off when I output. So I put an expression on each button-layer&#8217;s opacity that referenced the opacity of an adjustment layer. I could then change one variable instead of 30.</p>

	<p><img src="http://farm1.static.flickr.com/150/376242143_0254b68b31_o.png" /></p>

	<p>So thats a pretty simple example. What was more complex was my next brain-wave.<br />
The <span class="caps">DVD</span> menus are designed so that when you go from one to another, its like you are going though into a different part &#8211; See this example<a href="http://www.youtube.com/watch?v=oZiIkvUMxDk"> on Youtube</a></p>

	<p>What we wanted to do was, as the &#8220;camera&#8221; moved towards an object went from transparent to opaque. The way we did this was through an expression (special thanks to an old friend Stuart Evans, a math teacher at Heathdale Christian College).</p>

	<p>Stay tuned for part 2&#8230;</p>
 ]]></content:encoded>
			<wfw:commentRss>http://thefunklab.net/blog/2007/expressions-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cutting Sons of Korah Desktop</title>
		<link>http://thefunklab.net/blog/2006/cutting-sons-of-korah-desktop/</link>
		<comments>http://thefunklab.net/blog/2006/cutting-sons-of-korah-desktop/#comments</comments>
		<pubDate>Sun, 08 Jan 2006 14:28:57 +0000</pubDate>
		<dc:creator>simon mcrae</dc:creator>
				<category><![CDATA[after effects]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://thefunklab.net/blog/?p=15</guid>
		<description><![CDATA[Cutting Sons of Korah Desktop Originally uploaded by thefunklab. Alright, a special treat for you kiddies. Here&#8217;s a rare look behind the curtain of what editing a promo looks like. The program is After effects 6.5. The computer is an 20&#8221; Apple iMac 2.1. You need a bit of patience to do this sort of [...]]]></description>
			<content:encoded><![CDATA[	<p><div style="float: right; margin-left: 10px; margin-bottom: 10px"><a title="photo sharing" href="http://www.flickr.com/photos/thefunklab/83824271/"><img style="border: 2px solid #000000" src="http://static.flickr.com/41/83824271_526c10cea0_m.jpg" /></a></p>

	<p><span style="font-size: 0.9em; margin-top: 0px"><br />
<a href="http://www.flickr.com/photos/thefunklab/83824271/">Cutting Sons of Korah Desktop</a></p>

	<p>Originally uploaded by <a href="http://www.flickr.com/people/thefunklab/">thefunklab</a>.<br />
</span></div><br />
Alright, a special treat for you kiddies. Here&#8217;s a rare look behind the curtain of what editing a promo looks like. The program is After effects 6.5. The computer is an 20&#8221; Apple iMac 2.1.<br />
You need a bit of patience to do this sort of thing, as you make a change, wait for a render preview, make a change, wait for a render preview, etc.</p>

	<p>But the product looks great at the end.<br />
<br clear="all" /></p>
 ]]></content:encoded>
			<wfw:commentRss>http://thefunklab.net/blog/2006/cutting-sons-of-korah-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

