<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for the Shape of Motion</title>
	<atom:link href="http://www.theshapeofmotion.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theshapeofmotion.com</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 21:28:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Download by Johan Borgström</title>
		<link>http://www.theshapeofmotion.com/illustrator/download/comment-page-1/#comment-514</link>
		<dc:creator>Johan Borgström</dc:creator>
		<pubDate>Mon, 23 Jan 2012 21:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.theshapeofmotion.com/download/#comment-514</guid>
		<description>Good that you let me know, I have super much at work right now but I will look into it !</description>
		<content:encoded><![CDATA[<p>Good that you let me know, I have super much at work right now but I will look into it !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Illustrator CS 4 Script: Distribute To Layer by Johan Borgström</title>
		<link>http://www.theshapeofmotion.com/motion-graphics/illustrator-cs-4-script-distribute-to-layer/comment-page-1/#comment-513</link>
		<dc:creator>Johan Borgström</dc:creator>
		<pubDate>Mon, 23 Jan 2012 21:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.theshapeofmotion.com/?p=931#comment-513</guid>
		<description>I am glad that it helps you and you are welcome :)</description>
		<content:encoded><![CDATA[<p>I am glad that it helps you and you are welcome :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Download by Sylwia</title>
		<link>http://www.theshapeofmotion.com/illustrator/download/comment-page-1/#comment-512</link>
		<dc:creator>Sylwia</dc:creator>
		<pubDate>Sun, 22 Jan 2012 09:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.theshapeofmotion.com/download/#comment-512</guid>
		<description>Hi,

Unfortunately jb_draw_center_of_artboard.zip doesn&#039;t download correctly. :(

Have a nice day.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Unfortunately jb_draw_center_of_artboard.zip doesn&#8217;t download correctly. :(</p>
<p>Have a nice day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Illustrator CS 4 Script: Distribute To Layer by Sylwia</title>
		<link>http://www.theshapeofmotion.com/motion-graphics/illustrator-cs-4-script-distribute-to-layer/comment-page-1/#comment-511</link>
		<dc:creator>Sylwia</dc:creator>
		<pubDate>Sun, 22 Jan 2012 09:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.theshapeofmotion.com/?p=931#comment-511</guid>
		<description>Works like a charm. Thank you very much.</description>
		<content:encoded><![CDATA[<p>Works like a charm. Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Playstation 3 XrossMediaBar by Johan Borgström</title>
		<link>http://www.theshapeofmotion.com/as-3/fullscreen-hardware-scaling/comment-page-1/#comment-501</link>
		<dc:creator>Johan Borgström</dc:creator>
		<pubDate>Wed, 04 Jan 2012 15:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.theshapeofmotion.com/?p=1296#comment-501</guid>
		<description>Hi,
It is just as3. For the anim I think that I used Grant Skinners tween engine.
I had a look at the script files and I must unfortunately say that the code is not so tidy. So I dont think I will do much good to post files that are in that state.
It is of course allways possible to decompile the swf and have a look at the as3. You could f i use sothink decompiler. But i wouldn&#039;t really use my code since it is probably not the most optimal, rather an attempt of mine to learn to program.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
It is just as3. For the anim I think that I used Grant Skinners tween engine.<br />
I had a look at the script files and I must unfortunately say that the code is not so tidy. So I dont think I will do much good to post files that are in that state.<br />
It is of course allways possible to decompile the swf and have a look at the as3. You could f i use sothink decompiler. But i wouldn&#8217;t really use my code since it is probably not the most optimal, rather an attempt of mine to learn to program.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Playstation 3 XrossMediaBar by zerodevice</title>
		<link>http://www.theshapeofmotion.com/as-3/fullscreen-hardware-scaling/comment-page-1/#comment-499</link>
		<dc:creator>zerodevice</dc:creator>
		<pubDate>Thu, 29 Dec 2011 06:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.theshapeofmotion.com/?p=1296#comment-499</guid>
		<description>Hi, is there anyway you could share this source file?

are you using just native as3? or import some other engines?</description>
		<content:encoded><![CDATA[<p>Hi, is there anyway you could share this source file?</p>
<p>are you using just native as3? or import some other engines?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Illustrator CS 4 Script: Distribute To Layer by Dan Sollis</title>
		<link>http://www.theshapeofmotion.com/motion-graphics/illustrator-cs-4-script-distribute-to-layer/comment-page-1/#comment-489</link>
		<dc:creator>Dan Sollis</dc:creator>
		<pubDate>Wed, 14 Dec 2011 11:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.theshapeofmotion.com/?p=931#comment-489</guid>
		<description>Hey, this is an awesome script for people like me who need to animate Illustrator files in After Effects. The only problem - and it is a big problem - is that it appears that the layer order gets reversed. I can fix this in After Effects using another script, but it&#039;d be great to get it working properly in this version.

I&#039;ve been tinkering with it myself (already added some niceties like a &quot;pad digits function&quot; - so layers are always numbered tidily), but so far, no joy. I&#039;ve tried reversing the order the main loop traverses the selectedLayers index, but that doesn&#039;t seem to affect the end result.

Here&#039;s my latest version:

/*
	
Author: Johan Borgström 
Web: www.theshapeofmotion.com
	
Name: jb_distribute_to_layers.jsx
Date: 2010 01 19
Version: 1.0

Function: Distributes the selected items to new layers.
Arguments: None
Return Value: None
	
*/
	
try 
{
	if (app.documents.length &gt; 0 ) main();
	
	else throw new Error(&#039;There are no document open!&#039;);
}

catch(e) 
{
	alert( e.message, &quot;Script Alert&quot;, true);
}

// lil &quot;Pad digits&quot; function
    function padDigits(n, totalDigits) 
    { 
        n = n.toString(); 
        var pd = &quot;&quot;; 
        if (totalDigits &gt; n.length) 
        { 
            for (v=0; v &lt; (totalDigits-n.length); v++) 
            { 
                pd += &quot;0&quot;; 
            } 
        } 
        return pd + n.toString(); 
    }

// function: number of digits in a number - force number to a string then get length
function numberOfDigits(n) { 
    return Number(String(n).length);
    }

function main() 
{
	var myProject = app.project; // declare the project name
	var myDoc = app.activeDocument;
	var mySelectArray= myDoc.selection;

	displayWindow();
	
	function displayWindow() 
	{
		myWidth = 200;
		myHeight= 110;
		
		dlg = new Window(&#039;dialog&#039;, &#039;Distribute to Layers&#039;);
		dlg.size = [myWidth, myHeight];
		
		dlg.panel = dlg.add(&#039;panel&#039;, undefined, &#039;Layer Name&#039;);
		
		dlg.layerName = dlg.panel.add(&#039;edittext&#039;, undefined,undefined); // editable text
		dlg.layerName.preferredSize = [myWidth-60,20];
	
		dlg.btn = dlg.panel.add(&#039;button&#039;, undefined, &#039;Distribute &#039;); // btn
		dlg.btn.alignment = &#039;left&#039;;
		dlg.btn.onClick = doDistribute;
		
		dlg.show();
	}

	function doDistribute() 
	{
		if (dlg.layerName.text  &lt; 1) 
		{
			alert(&#039;Please give me a Layer Name !&#039;);
			return;
		}
	
		if (mySelectArray.length &lt; 1) 
		{
			alert(&#039;Please Select some Items to Distribute !&#039;);
			return;
		}
    
        var totalLayers = Number(mySelectArray.length);
        var numberOfLayerNameDigits = numberOfDigits(totalLayers);

		for ( i = 0; i &lt; totalLayers; i++ ) 
		{
			var newLayer = myDoc.layers.add();
              var targetObjectIndex = (-1 + totalLayers - i);
			var mySelName = mySelectArray[targetObjectIndex].name;
			newLayer.name = (dlg.layerName.text+&#039;_&#039;+ padDigits(targetObjectIndex,numberOfLayerNameDigits));
			mySelectArray[i].move(newLayer,ElementPlacement.PLACEATBEGINNING);
		}
		
		dlg.close();
	}

}</description>
		<content:encoded><![CDATA[<p>Hey, this is an awesome script for people like me who need to animate Illustrator files in After Effects. The only problem &#8211; and it is a big problem &#8211; is that it appears that the layer order gets reversed. I can fix this in After Effects using another script, but it&#8217;d be great to get it working properly in this version.</p>
<p>I&#8217;ve been tinkering with it myself (already added some niceties like a &#8220;pad digits function&#8221; &#8211; so layers are always numbered tidily), but so far, no joy. I&#8217;ve tried reversing the order the main loop traverses the selectedLayers index, but that doesn&#8217;t seem to affect the end result.</p>
<p>Here&#8217;s my latest version:</p>
<p>/*</p>
<p>Author: Johan Borgström<br />
Web: <a href="http://www.theshapeofmotion.com" rel="nofollow">http://www.theshapeofmotion.com</a></p>
<p>Name: jb_distribute_to_layers.jsx<br />
Date: 2010 01 19<br />
Version: 1.0</p>
<p>Function: Distributes the selected items to new layers.<br />
Arguments: None<br />
Return Value: None</p>
<p>*/</p>
<p>try<br />
{<br />
	if (app.documents.length &gt; 0 ) main();</p>
<p>	else throw new Error(&#8216;There are no document open!&#8217;);<br />
}</p>
<p>catch(e)<br />
{<br />
	alert( e.message, &#8220;Script Alert&#8221;, true);<br />
}</p>
<p>// lil &#8220;Pad digits&#8221; function<br />
    function padDigits(n, totalDigits)<br />
    {<br />
        n = n.toString();<br />
        var pd = &#8220;&#8221;;<br />
        if (totalDigits &gt; n.length)<br />
        {<br />
            for (v=0; v &lt; (totalDigits-n.length); v++)<br />
            {<br />
                pd += &quot;0&quot;;<br />
            }<br />
        }<br />
        return pd + n.toString();<br />
    }</p>
<p>// function: number of digits in a number &#8211; force number to a string then get length<br />
function numberOfDigits(n) {<br />
    return Number(String(n).length);<br />
    }</p>
<p>function main()<br />
{<br />
	var myProject = app.project; // declare the project name<br />
	var myDoc = app.activeDocument;<br />
	var mySelectArray= myDoc.selection;</p>
<p>	displayWindow();</p>
<p>	function displayWindow()<br />
	{<br />
		myWidth = 200;<br />
		myHeight= 110;</p>
<p>		dlg = new Window(&#039;dialog&#039;, &#039;Distribute to Layers&#039;);<br />
		dlg.size = [myWidth, myHeight];</p>
<p>		dlg.panel = dlg.add(&#039;panel&#039;, undefined, &#039;Layer Name&#039;);</p>
<p>		dlg.layerName = dlg.panel.add(&#039;edittext&#039;, undefined,undefined); // editable text<br />
		dlg.layerName.preferredSize = [myWidth-60,20];</p>
<p>		dlg.btn = dlg.panel.add(&#039;button&#039;, undefined, &#039;Distribute &#039;); // btn<br />
		dlg.btn.alignment = &#039;left&#039;;<br />
		dlg.btn.onClick = doDistribute;</p>
<p>		dlg.show();<br />
	}</p>
<p>	function doDistribute()<br />
	{<br />
		if (dlg.layerName.text  &lt; 1)<br />
		{<br />
			alert(&#039;Please give me a Layer Name !&#039;);<br />
			return;<br />
		}</p>
<p>		if (mySelectArray.length &lt; 1)<br />
		{<br />
			alert(&#039;Please Select some Items to Distribute !&#039;);<br />
			return;<br />
		}</p>
<p>        var totalLayers = Number(mySelectArray.length);<br />
        var numberOfLayerNameDigits = numberOfDigits(totalLayers);</p>
<p>		for ( i = 0; i &lt; totalLayers; i++ )<br />
		{<br />
			var newLayer = myDoc.layers.add();<br />
              var targetObjectIndex = (-1 + totalLayers &#8211; i);<br />
			var mySelName = mySelectArray[targetObjectIndex].name;<br />
			newLayer.name = (dlg.layerName.text+&#039;_&#039;+ padDigits(targetObjectIndex,numberOfLayerNameDigits));<br />
			mySelectArray[i].move(newLayer,ElementPlacement.PLACEATBEGINNING);<br />
		}</p>
<p>		dlg.close();<br />
	}</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Illustrator CS 4 Script: Distribute To Layer by Johan Borgström</title>
		<link>http://www.theshapeofmotion.com/motion-graphics/illustrator-cs-4-script-distribute-to-layer/comment-page-1/#comment-363</link>
		<dc:creator>Johan Borgström</dc:creator>
		<pubDate>Fri, 26 Aug 2011 08:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.theshapeofmotion.com/?p=931#comment-363</guid>
		<description>:) 
Know that feeling, glad to help !</description>
		<content:encoded><![CDATA[<p>:)<br />
Know that feeling, glad to help !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Illustrator CS 4 Script: Distribute To Layer by Bryan</title>
		<link>http://www.theshapeofmotion.com/motion-graphics/illustrator-cs-4-script-distribute-to-layer/comment-page-1/#comment-362</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Fri, 26 Aug 2011 06:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.theshapeofmotion.com/?p=931#comment-362</guid>
		<description>You just made my year.</description>
		<content:encoded><![CDATA[<p>You just made my year.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Maya &#8211; Rigging: Cartoon Eye Rig by Johan Borgström</title>
		<link>http://www.theshapeofmotion.com/character-setup/cartoon-eye-rig/comment-page-1/#comment-345</link>
		<dc:creator>Johan Borgström</dc:creator>
		<pubDate>Thu, 11 Aug 2011 20:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.theshapeofmotion.com/?p=681#comment-345</guid>
		<description>Thank you :) 
I will check out your site !</description>
		<content:encoded><![CDATA[<p>Thank you :)<br />
I will check out your site !</p>
]]></content:encoded>
	</item>
</channel>
</rss>

