<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: Can I get path information out of Photoshop / Illustrator?</title>
      <link>http://ask.metafilter.com/66232/Can-I-get-path-information-out-of-Photoshop-Illustrator/</link>
      <description>Comments on Ask MetaFilter post Can I get path information out of Photoshop / Illustrator?</description>
	  	  <pubDate>Wed, 04 Jul 2007 15:57:07 -0800</pubDate>
      <lastBuildDate>Wed, 04 Jul 2007 15:57:07 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Can I get path information out of Photoshop / Illustrator?</title>
  	<link>http://ask.metafilter.com/66232/Can-I-get-path-information-out-of-Photoshop-Illustrator</link>	
  	<description>Bezier Curves: Is there a way I can access the information about a path in Photoshop or illustrator (x,y positions of anchors and control points). &lt;br /&gt;&lt;br /&gt; I&apos;d like to be able to draw a shape path in photoshop and then use that information as input in a language like Processing or Flash that have functions that take positions of anchor points and handles. For instance, the bezier function in Processing looks like this: bezier(x1, y1, cx1, cy1, cx2, cy2, x2, y2).&lt;br&gt;
&lt;br&gt;
Or is there an easier way that I&apos;m just totally missing? I just find it very dificult to make the shapes by inputing numbers and trying to get the shapes right.</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.66232</guid>
  	<pubDate>Wed, 04 Jul 2007 15:15:55 -0800</pubDate>
  	<dc:creator>miniape</dc:creator>
	
	<category>photoshop</category>
	
	<category>illustrator</category>
	
	<category>processing</category>
	
	<category>flash</category>
	
	<category>bezier</category>
	
	<category>paths</category>
	
</item>
<item>
  	<title>By: b33j</title>
  	<link>http://ask.metafilter.com/66232/Can-I-get-path-information-out-of-Photoshop-Illustrator#994661</link>	
  	<description>Info (under Window) has some of the information you need.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66232-994661</guid>
  	<pubDate>Wed, 04 Jul 2007 15:57:07 -0800</pubDate>
  	<dc:creator>b33j</dc:creator>
</item>
<item>
  	<title>By: b33j</title>
  	<link>http://ask.metafilter.com/66232/Can-I-get-path-information-out-of-Photoshop-Illustrator#994662</link>	
  	<description>That is, from Illustrator. But what about cutting and pasting directly from Illustrator to Flash?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66232-994662</guid>
  	<pubDate>Wed, 04 Jul 2007 15:57:31 -0800</pubDate>
  	<dc:creator>b33j</dc:creator>
</item>
<item>
  	<title>By: Crosius</title>
  	<link>http://ask.metafilter.com/66232/Can-I-get-path-information-out-of-Photoshop-Illustrator#994674</link>	
  	<description>Processing can use the&lt;a href=&quot;http://processing.org/reference/libraries/candy/index.html&quot;&gt; Candy SVG&lt;/a&gt; library to import &amp;amp; display shapes saved in SVG format, so you really just need to get illustrator to export SVG files.&lt;br&gt;
&lt;br&gt;
I use &lt;a href=&quot;http://www.inkscape.org/download/?lang=en&quot;&gt;InkScape&lt;/a&gt; to edit SVG files directly.  It&apos;s open-source, so you might want to give it a try.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66232-994674</guid>
  	<pubDate>Wed, 04 Jul 2007 16:31:55 -0800</pubDate>
  	<dc:creator>Crosius</dc:creator>
</item>
<item>
  	<title>By: miniape</title>
  	<link>http://ask.metafilter.com/66232/Can-I-get-path-information-out-of-Photoshop-Illustrator#994700</link>	
  	<description>Crosius: Excellent. It appears that I can also get the information referencing the DOM with JavaScript, so now I have two routes to pursue. Your lead looks simpler though.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66232-994700</guid>
  	<pubDate>Wed, 04 Jul 2007 18:16:48 -0800</pubDate>
  	<dc:creator>miniape</dc:creator>
</item>
<item>
  	<title>By: grumblebee</title>
  	<link>http://ask.metafilter.com/66232/Can-I-get-path-information-out-of-Photoshop-Illustrator#994702</link>	
  	<description>Well, if you already know how to program Flash, you can program Photoshop and Illustrator in virtually the same language. Flash is programmable in Actionscript while PS and AI are programmable in Javascript. Both languages are based on ECMA-script.&lt;br&gt;
&lt;br&gt;
You could (I think -- I&apos;ve never actually programmed PS) write a PS script that reads the vector points and outputs them. Then you could enter those values into Flash or Processing.&lt;br&gt;
&lt;br&gt;
You could also cut out PS/AI and do the whole thing in Flash. I can think of two ways of doing this:&lt;br&gt;
&lt;br&gt;
1) You could use Javascript For Flash (Flash&apos;s application-scripting language) to read x-y positions of bezier curves you&apos;ve drawn with Flash&apos;s pen tool. Then you could use Actionscript to redraw these points using code.&lt;br&gt;
&lt;br&gt;
2) You could roll your own pen-tool by coding it in Actionscript. This would be fairly easy using AS&apos;s drawing commands. Since it would be your program from start-to-finish, you&apos;d have instant access to the point info.&lt;br&gt;
&lt;br&gt;
Oh, one more idea. SVG is a form of XML, right? Actionscript can parse XML. So output from AI in SVG and write an Actionscript program to read in the XML and use the info to redraw the curves.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66232-994702</guid>
  	<pubDate>Wed, 04 Jul 2007 18:20:48 -0800</pubDate>
  	<dc:creator>grumblebee</dc:creator>
</item>

    </channel>
</rss>
