<?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/"
	>

<channel>
	<title>chris-g.net &#187; AfterEffects</title>
	<atom:link href="http://www.chris-g.net/tag/aftereffects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chris-g.net</link>
	<description>Animation, 3D scripts and tools,  stuff and nonsense</description>
	<lastBuildDate>Tue, 26 Jan 2010 10:57:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>After Effects &#8211; creating open masks via scripting</title>
		<link>http://www.chris-g.net/2008/12/08/after-effects-creating-open-masks-via-scripting/</link>
		<comments>http://www.chris-g.net/2008/12/08/after-effects-creating-open-masks-via-scripting/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 05:12:41 +0000</pubDate>
		<dc:creator>chrisg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AfterEffects]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.chris-g.net/?p=141</guid>
		<description><![CDATA[Okay, so you&#8217;re creating an After Effects script (my condolences to you, by the way) to create a mask or a shape layer. And you want to create an *open* mask. And you&#8217;ve been banging your head against a brick wall, because the damn thing always wants to close. Here&#8217;s how to fix it&#8230; The ]]></description>
			<content:encoded><![CDATA[<p>Okay, so you&#8217;re creating an After Effects script (my condolences to you, by the way) to create a mask or a shape layer. And you want to create an *open* mask. And you&#8217;ve been banging your head against a brick wall, because the damn thing always wants to close. Here&#8217;s how to fix it&#8230;<span id="more-141"></span></p>
<p>The trick seems to be to declare the mask to be open *before* you set the points of the mask. So simple when you know how. So, this will not work:</p>
<blockquote>
<pre>newMask = thisLayer.Masks.addProperty("Mask");
myMaskShape = newMask.property("maskShape");
myShape = myMaskShape.value;
myShape.vertices = maskPointArray;
<strong>myMaskShape.setValue(myShape);
myShape.closed = false;</strong></pre>
</blockquote>
<p>Whereas this *will* work:</p>
<blockquote>
<pre>newMask = thisLayer.Masks.addProperty("Mask");
myMaskShape = newMask.property("maskShape");
myShape = myMaskShape.value;
myShape.vertices = maskPointArray;
<strong>myShape.closed = false;</strong>
<strong>myMaskShape.setValue(myShape);
</strong></pre>
</blockquote>
<p>I thought i&#8217;d write this up to hopefully save someone the same frustration i&#8217;ve been through.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-g.net/2008/12/08/after-effects-creating-open-masks-via-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
