<?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>JoshuaScotton.com &#187; Python</title>
	<atom:link href="http://www.joshuascotton.com/main/archives/tag/python/feed" rel="self" type="application/rss+xml" />
	<link>http://www.joshuascotton.com/main</link>
	<description>It's all relative ...</description>
	<lastBuildDate>Sat, 24 Dec 2011 23:01:33 +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>Using python-coverage for tests in Entertainer</title>
		<link>http://www.joshuascotton.com/main/archives/103</link>
		<comments>http://www.joshuascotton.com/main/archives/103#comments</comments>
		<pubDate>Wed, 09 Apr 2008 11:30:22 +0000</pubDate>
		<dc:creator>Joshua Scotton</dc:creator>
				<category><![CDATA[IT and Linux]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Entertainer]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[python-coverage]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://www.joshuascotton.com/main/archives/103</guid>
		<description><![CDATA[I recently read a blog post about python-coverage. This is a module which works out how much of a python file has been used when a python file is run. One very helpful use it can be put to is that of working out how much of a project&#8217;s source code has been covered by [...]]]></description>
			<content:encoded><![CDATA[<p>I recently read a <a href="http://martinpitt.wordpress.com/2008/04/08/python-code-coverage/">blog post</a> about python-coverage. This is a module which works out how much of a python file has been used when a python file is run.</p>
<p>One very helpful use it can be put to is that of working out how much of a project&#8217;s source code has been covered by unit tests and I decided to try this for the Entertainer Media Center project.</p>
<p>What follows is how I installed and used python-coverage to work out how much of the Entertainer Source code is actually tested when all our unittests are run. I relied upon this <a href="http://nedbatchelder.com/code/modules/rees-coverage.html">webpage</a> and the command line help available from python-coverage.</p>
<p><span id="more-103"></span>First of all I installed the python module from the Ubuntu repositories:</p>
<blockquote><p><code>sudo apt-get install python-coverage</code></p></blockquote>
<p>This installed version 2.6</p>
<p>I then changed directory to where all the unittests for Entertainer are stored on my computer:</p>
<blockquote><p><code>cd src/tests</code></p></blockquote>
<p>After testing it in a couple of ways, I then cleared any previous history with this command:</p>
<blockquote><p><code>python /usr/share/python-support/python-coverage/coverage.py -e</code></p></blockquote>
<p>The actual production of the statistics is done in two stages. First you run the program which will generate the stats (In this case all the unittests):</p>
<blockquote><p><code>python /usr/share/python-support/python-coverage/coverage.py -x run_tests.py</code></p></blockquote>
<p>This stores a history of what lines were executed. You can then compare this history to the actual source files with:</p>
<blockquote><p><code>python /usr/share/python-support/python-coverage/coverage.py -r ../*.py ../*/*.py ../*/*/*.py ../*/*/*/*.py ../*/*/*/*/*.py</code></p></blockquote>
<p>This gives statistics for each individual source code file and then a set of overall statistics for the whole project. I had to use the ../*&#8217;s to make sure all the source code was used.</p>
<p>The overall stats that were generated for the Entertainer Project is as follows:</p>
<blockquote><p><code>...<br />
../utils/log_viewer                                              114      0     0%<br />
../utils/lyrics_downloader                                        80     19    23%<br />
../utils/open_feed_source_dialog                                  77      0     0%<br />
../utils/preferences_dialog                                      200      0     0%<br />
../utils/resolve_dialog                                           64      0     0%<br />
../utils/system_tray_icon                                         95      0     0%<br />
../utils/theme                                                    88      0     0%<br />
../utils/thumbnailer                                              31     27    87%<br />
../utils/video_thumbnailer                                       226    126    55%<br />
../utils/weather                                                 106    100    94%<br />
----------------------------------------------------------------------------------<br />
TOTAL                                                          13195   2206    16%</code></p></blockquote>
<p>This means that out of a total of 13,195 lines of python code only 16%, 2,206 lines, is being tested by the 145 unittests that have been written so far.</p>
<p>Obviously increasing the coverage of the unittests will make the Entertainer much better at pinpointing bugs and fixing breaks in code as the project is developed.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" class="tt" href="http://twitter.com/intent/tweet?text=Using+python-coverage+for+tests+in+Entertainer+http%3A%2F%2Fis.gd%2F6n2Je2" title="Post to Twitter"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.joshuascotton.com/main/archives/103&amp;title=Using+python-coverage+for+tests+in+Entertainer" title="Post to Delicious"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.joshuascotton.com/main/archives/103&amp;title=Using+python-coverage+for+tests+in+Entertainer" title="Post to Digg"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.joshuascotton.com/main/archives/103&amp;t=Using+python-coverage+for+tests+in+Entertainer" title="Post to Facebook"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.joshuascotton.com/main/archives/103/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Started GoogleCode site for ChallengeHelper</title>
		<link>http://www.joshuascotton.com/main/archives/76</link>
		<comments>http://www.joshuascotton.com/main/archives/76#comments</comments>
		<pubDate>Sat, 01 Mar 2008 10:13:21 +0000</pubDate>
		<dc:creator>Joshua Scotton</dc:creator>
				<category><![CDATA[IT and Linux]]></category>
		<category><![CDATA[Blender]]></category>
		<category><![CDATA[ChallengeHelper]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.joshuascotton.com/main/archives/76</guid>
		<description><![CDATA[I&#8217;ve started a googlecode page for the python code I&#8217;ll be using to help manage the Blender Week Day Challenges. You can find the project page here At the moment I&#8217;ve add Challenge, Entry and Item classes and it can now load and save challenge data in xml format. The next step will be added [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started a googlecode page for the python code I&#8217;ll be using to help manage the Blender Week Day Challenges. You can find the <a href="http://code.google.com/p/challenge-helper/">project page here</a></p>
<p>At the moment I&#8217;ve add Challenge, Entry and Item classes and it can now load and save challenge data in xml format.</p>
<p>The next step will be added a ChallengeManager class to manager the insertion of data and automatic posting to www.blenderchallenge.com and blenderartists.org</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" class="tt" href="http://twitter.com/intent/tweet?text=Started+GoogleCode+site+for+ChallengeHelper+http%3A%2F%2Fis.gd%2FWzaQsp" title="Post to Twitter"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.joshuascotton.com/main/archives/76&amp;title=Started+GoogleCode+site+for+ChallengeHelper" title="Post to Delicious"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.joshuascotton.com/main/archives/76&amp;title=Started+GoogleCode+site+for+ChallengeHelper" title="Post to Digg"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.joshuascotton.com/main/archives/76&amp;t=Started+GoogleCode+site+for+ChallengeHelper" title="Post to Facebook"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.joshuascotton.com/main/archives/76/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Doxygen comments in Python</title>
		<link>http://www.joshuascotton.com/main/archives/80</link>
		<comments>http://www.joshuascotton.com/main/archives/80#comments</comments>
		<pubDate>Wed, 27 Feb 2008 20:24:47 +0000</pubDate>
		<dc:creator>Joshua Scotton</dc:creator>
				<category><![CDATA[IT and Linux]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Doxygen]]></category>
		<category><![CDATA[Entertainer]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.joshuascotton.com/main/archives/80</guid>
		<description><![CDATA[I&#8217;ve been creating automatic documentation for the Entertainer project using Doxygen. As you may know, Entertainer is written in python, so what follows is a short guide to commenting python code in a format that Doxygen will pick up. Say you wrote the following: class Demo: &#160;&#160;def theDemoTest(self, testParameter): &#160;&#160;&#160;&#160;#do something here &#160;&#160;&#160;&#160;return 0 You [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been creating automatic documentation for the Entertainer project using Doxygen.<br />
As you may know, Entertainer is written in python, so what follows is a short guide to commenting python code in a format that Doxygen will pick up.<br />
<span id="more-80"></span><br />
Say you wrote the following:<br />
<code><br />
class Demo:<br />
&nbsp;&nbsp;def theDemoTest(self, testParameter):<br />
&nbsp;&nbsp;&nbsp;&nbsp;#do something here<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
</code></p>
<p>You can comment this in Doxygen format in the following way:<br />
<code><br />
class Demo:<br />
"""<br />
This is a description of the Demo class<br />
@author Joshua Scotton<br />
@version 0.1<br />
"""<br />
&nbsp;&nbsp;def theDemoTest(self, testParameter):<br />
&nbsp;&nbsp;"""<br />
&nbsp;&nbsp;This is the very, very, very, very, very, very, very, very, very, very long description of theDemoTest!<br />
&nbsp;&nbsp;@brief This is where you can put a brief description<br />
&nbsp;&nbsp;@see Demo<br />
&nbsp;&nbsp;@param testParameter String: Input Parameter is a string<br />
&nbsp;&nbsp;@return int Returns a 0 if successful<br />
&nbsp;&nbsp;"""<br />
&nbsp;&nbsp;&nbsp;&nbsp;#do something here<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
</code></p>
<p><strong>Quick Tag List</strong><br />
@author<br />
@brief<br />
@bug<br />
@code and @endcode<br />
@date<br />
@file<br />
@package<br />
@param<br />
@return<br />
@see<br />
@todo<br />
@version<br />
@warning</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" class="tt" href="http://twitter.com/intent/tweet?text=Doxygen+comments+in+Python+http%3A%2F%2Fis.gd%2FebvOpx" title="Post to Twitter"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.joshuascotton.com/main/archives/80&amp;title=Doxygen+comments+in+Python" title="Post to Delicious"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.joshuascotton.com/main/archives/80&amp;title=Doxygen+comments+in+Python" title="Post to Digg"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.joshuascotton.com/main/archives/80&amp;t=Doxygen+comments+in+Python" title="Post to Facebook"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.joshuascotton.com/main/archives/80/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Creating Documentation from Python Source Files with Doxygen and doxypy</title>
		<link>http://www.joshuascotton.com/main/archives/64</link>
		<comments>http://www.joshuascotton.com/main/archives/64#comments</comments>
		<pubDate>Mon, 04 Feb 2008 14:01:48 +0000</pubDate>
		<dc:creator>Joshua Scotton</dc:creator>
				<category><![CDATA[IT and Linux]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Doxygen]]></category>
		<category><![CDATA[Entertainer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.joshuascotton.com/main/archives/64</guid>
		<description><![CDATA[I was recently generating some documentation from the Entertainer source code and decided to share how I managed to do it. I&#8217;m assuming python 2.4 is installed on your system. First install doxygen and graphviz sudo apt-get install doxygen graphviz Download the latest version of doxypy from http://code.foosel.org/doxypy and extract to a suitable location. I [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.joshuascotton.com/main/wp-content/uploads/2008/02/doxygen.png" alt="doxygen.png" /></p>
<p>I was recently generating some documentation from the Entertainer source code and decided to share how I managed to do it.</p>
<p>I&#8217;m assuming python 2.4 is installed on your system.</p>
<p>First install doxygen and graphviz</p>
<p><span id="more-64"></span></p>
<p><code>sudo apt-get install doxygen graphviz</code></p>
<p>Download the latest version of doxypy from http://code.foosel.org/doxypy and extract to a suitable location.</p>
<p>I used <a href="http://code.foosel.org/files/doxypy-0.3rc2.tar.gz" class="urlextern" title="http://code.foosel.org/files/doxypy-0.3rc2.tar.gz" rel="nofollow">doxypy-0.3rc2.tar.gz</a></p>
<p>Now we need to generate a configuration file, to do this run the following from your project root folder</p>
<p><code>doxygen -g config.dox</code></p>
<p>Edit the file and set the following tags:</p>
<p><code>PROJECT_NAME           = #Your Project Name would go here<br />
PROJECT_NUMBER         = #Your version/revision number goes here<br />
OUTPUT_DIRECTORY       = #Where you want the documentation going<br />
FILE_PATTERNS = *.py<br />
RECURSIVE = YES<br />
INPUT_FILTER           = "python /path/to/doxypy.py" #set this to where you extracted doxypy<br />
FILTER_SOURCE_FILES    = YES<br />
INPUT                  = #where the source files are</code></p>
<p>If you want graphs also edit the following:</p>
<p><code>HIDE_UNDOC_RELATIONS   = NO<br />
HAVE_DOT               = YES<br />
CALL_GRAPH             = YES<br />
CALLER_GRAPH           = YES</code></p>
<p>Run the following:</p>
<p><code>whereis dot</code><br />
and enter the output into the following config tag:<br />
<code></code></p>
<p><code>DOT_PATH               = /usr/bin/dot</code></p>
<p>Next ones are optional:</p>
<p><code>MULTILINE_CPP_IS_BRIEF = YES<br />
DETAILS_AT_TOP         = YES<br />
EXTRACT_ALL            = YES<br />
EXTRACT_STATIC         = YES<br />
SHOW_DIRECTORIES       = YES<br />
SOURCE_BROWSER         = YES<br />
ALPHABETICAL_INDEX     = YES<br />
COLS_IN_ALPHA_INDEX    = 8<br />
TOC_EXPAND             = YES<br />
DISABLE_INDEX          = YES<br />
GENERATE_TREEVIEW      = YES<br />
GENERATE_LATEX         =YES<br />
</code><br />
All set up now&#8230;</p>
<p>All we need to do now whenever you want to generate/regenerate the documentation is to run the following from the project root folder:</p>
<p><code>doxygen config.dox</code></p>
<p>Thanks to <a href="http://internetducttape.com">internetducttape.com</a> as I used <a href="http://internetducttape.com/2007/03/20/automatic_documentation_python_doxygen/">this blog entry</a> as a starting point.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" class="tt" href="http://twitter.com/intent/tweet?text=Creating+Documentation+from+Python+Source+Files+with+Doxygen+and+doxypy+http%3A%2F%2Fis.gd%2FR9kk93" title="Post to Twitter"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.joshuascotton.com/main/archives/64&amp;title=Creating+Documentation+from+Python+Source+Files+with+Doxygen+and+doxypy" title="Post to Delicious"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.joshuascotton.com/main/archives/64&amp;title=Creating+Documentation+from+Python+Source+Files+with+Doxygen+and+doxypy" title="Post to Digg"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.joshuascotton.com/main/archives/64&amp;t=Creating+Documentation+from+Python+Source+Files+with+Doxygen+and+doxypy" title="Post to Facebook"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.joshuascotton.com/main/archives/64/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Entertainer</title>
		<link>http://www.joshuascotton.com/main/archives/51</link>
		<comments>http://www.joshuascotton.com/main/archives/51#comments</comments>
		<pubDate>Sat, 12 Jan 2008 18:10:41 +0000</pubDate>
		<dc:creator>Joshua Scotton</dc:creator>
				<category><![CDATA[IT and Linux]]></category>
		<category><![CDATA[Entertainer]]></category>
		<category><![CDATA[Launchpad]]></category>
		<category><![CDATA[Media Centre]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.joshuascotton.com/main/archives/51</guid>
		<description><![CDATA[  I&#8217;ve just joined the Entertainer Project  over on Launchpad. From the website: &#8220;Entertainer aims to be a simple and easy-to-use media center solution for Gnome and XFce desktop environments. Entertainer is written completely in Python using object-oriented programming paradigm. It uses GStreamer multimedia framework for multimedia playback. User Interface is implemented with Clutter UI-library, [...]]]></description>
			<content:encoded><![CDATA[<p> <img src="http://www.joshuascotton.com/main/wp-content/uploads/2008/01/thumb1.jpg" alt="thumb1.jpg" /><img src="http://www.joshuascotton.com/main/wp-content/uploads/2008/01/thumb2.jpg" alt="thumb2.jpg" /><img src="http://www.joshuascotton.com/main/wp-content/uploads/2008/01/thumb3.jpg" alt="thumb3.jpg" /></p>
<p>I&#8217;ve just joined the <a href="http://www.entertainer-project.com/">Entertainer Project</a>  over on <a href="https://launchpad.net/entertainer/">Launchpad</a>.</p>
<p>From the website:</p>
<p><em>&#8220;Entertainer aims to be a simple and easy-to-use <strong>media center solution</strong> for Gnome and XFce desktop environments. Entertainer is written completely in <a href="http://www.python.org/">Python</a> using object-oriented programming paradigm. It uses <a href="http://gstreamer.freedesktop.org/">GStreamer</a> multimedia framework for multimedia playback. User Interface is implemented with <a href="http://clutter-project.org/">Clutter</a> UI-library, which allows sleek OpenGL animated user interfaces. Entertainer also uses other great projects like <a href="http://sqlite.org/">SQLite</a>, <a href="http://imdbpy.sourceforge.net/">pyIMDBb</a> and <a href="http://pyinotify.sourceforge.net/">iNotify</a>.     </em></p>
<p><em>     The ultimate goal of the project is to create the best media center solution available     for any platform. This means that Entertainer should be the best looking, most easy     to use and most feature filled media center solution available. Not the easiest goal     to achieve. It&#8217;s a long way, but we have a good start here!&#8221;</em></p>
<p>My first job is to add opml import capability to the rss feed reader and allow the option to sync with liferea. I&#8217;ll be checking out any bugs relating to this as well.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" class="tt" href="http://twitter.com/intent/tweet?text=Entertainer+http%3A%2F%2Fis.gd%2Fog4klA" title="Post to Twitter"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.joshuascotton.com/main/archives/51&amp;title=Entertainer" title="Post to Delicious"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.joshuascotton.com/main/archives/51&amp;title=Entertainer" title="Post to Digg"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.joshuascotton.com/main/archives/51&amp;t=Entertainer" title="Post to Facebook"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.joshuascotton.com/main/archives/51/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Blender Import Reference Images Script</title>
		<link>http://www.joshuascotton.com/main/archives/45</link>
		<comments>http://www.joshuascotton.com/main/archives/45#comments</comments>
		<pubDate>Tue, 01 Jan 2008 16:50:56 +0000</pubDate>
		<dc:creator>Joshua Scotton</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[IT and Linux]]></category>
		<category><![CDATA[Blender]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.joshuascotton.com/main/archives/45</guid>
		<description><![CDATA[I&#8217;ve just finished coding a python script for Blender 2.44 which imports all the jpg files in a folder into planes in a scene. This can be used to import a number of reference images into a scene as an aid to modelling. V1.0 * imports any pictures with the extension .jpg * resizes planes [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished coding a python script for Blender 2.44 which imports all the jpg files in a folder into planes in a scene.</p>
<p>This can be used to import a number of reference images into a scene as an aid to modelling.</p>
<p>V1.0</p>
<p>* imports any pictures with the extension .jpg<br />
* resizes planes to 2 blender units per 1000 pixels</p>
<p>V1.1</p>
<p>* implements changes proposed by migius on blenderartists to work on windows xp<br />
* can choose any extension<br />
* can choose the scale</p>
<p>V1.2</p>
<p>* cosmetic changes <img src='http://www.joshuascotton.com/main/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Version 1.2: <a href="http://www.joshuascotton.com/main/wp-content/uploads/2008/01/importrefimages12.py" title="importrefimages12.py">importrefimages12.py</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" class="tt" href="http://twitter.com/intent/tweet?text=Blender+Import+Reference+Images+Script+http%3A%2F%2Fis.gd%2FNpnmWP" title="Post to Twitter"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.joshuascotton.com/main/archives/45&amp;title=Blender+Import+Reference+Images+Script" title="Post to Delicious"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.joshuascotton.com/main/archives/45&amp;title=Blender+Import+Reference+Images+Script" title="Post to Digg"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.joshuascotton.com/main/archives/45&amp;t=Blender+Import+Reference+Images+Script" title="Post to Facebook"><img class="nothumb" src="http://www.joshuascotton.com/main/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.joshuascotton.com/main/archives/45/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

