<?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>J Ben Sledge &#124; Technical Artist</title>
	<atom:link href="http://jbensledge.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jbensledge.com</link>
	<description></description>
	<lastBuildDate>Wed, 09 May 2012 04:11:24 +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>Rendering and Shading Final</title>
		<link>http://jbensledge.com/dpa/809/final/</link>
		<comments>http://jbensledge.com/dpa/809/final/#comments</comments>
		<pubDate>Fri, 04 May 2012 18:08:51 +0000</pubDate>
		<dc:creator>Ben Sledge</dc:creator>
				<category><![CDATA[CPSC 809 - Rendering and Shading]]></category>

		<guid isPermaLink="false">http://jbensledge.com/?p=373</guid>
		<description><![CDATA[I used a comblination of RenderMan shaders and Maya shaders for this project. I wish I had more time to work on the RenderMan side of things, I think the [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_374" class="wp-caption aligncenter" style="width: 310px"><a href="http://jbensledge.com/wp-content/uploads/2012/05/render.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/05/render-300x168.jpg" alt="" title="render" width="300" height="168" class="size-medium wp-image-374" /></a><p class="wp-caption-text">Final Image</p></div>
<p>I used a comblination of RenderMan shaders and Maya shaders for this project. I wish I had more time to work on the RenderMan side of things, I think the control RM offers would have been be really useful if I had time to further explore it.</p>
<p>I also really wanted to use the &#8220;Physical Sun and Sky&#8221; lighting option, until I tried to use it and I realized that&#8217;s a Mental Ray feature and not a Maya thing. I used two area lights to fake it.</p>
<h2>RenderMan SL Code</h2>
<h3>vase.sl</h3>
<pre class="wp-code-highlight prettyprint linenums:1">
surface vase(
    float blend = 0.0;
    color c1 = color(0.25, 0.0, 0.0);
    color c2 = color(0.8, 0.05, 0.15);
    uniform float specBump = 1;
    uniform float Ks = 1;
    uniform float roughness = 0.2;)
{

color surfColor;

vector n = normalize(N);
vector nf = faceforward(n, I);

Oi = Os;
float noi = clamp (noise(P),0,1);
surfColor = mix ( c1, c2, blend * noi);

normal Norig = faceforward(normalize(Ng), I);
vector V = -normalize(I);

normal Nspec = normalize( mix(Norig, nf, clamp(specBump,0,1)) );

color diffColor = surfColor * diffuse(n);

Ci = Oi * diffColor + (Ks * specular(Nspec,V,roughness));

}
</pre>
<h3>book.sl</h3>
<pre class="wp-code-highlight prettyprint linenums:1">
surface book(
    float blend = 0.0;
    color c1 = color(0.25, 0.0, 0.0);
    color c2 = color(0.8, 0.05, 0.15);
    uniform float specBump = 1;
    uniform float Ks = 1;
    uniform float roughness = 0.2;)
{

color surfColor;

vector n = normalize(N);
vector nf = faceforward(n, I);

Oi = Os;
surfColor = mix ( c1, c2, blend);

normal Norig = faceforward(normalize(Ng), I);
vector V = -normalize(I);

normal Nspec = normalize( mix(Norig, nf, clamp(specBump,0,1)) );

color diffColor = surfColor * diffuse(n);

Ci = Oi * diffColor + (Ks * specular(Nspec,V,roughness));

}
</pre>
<h3>noise.sl</h3>
<pre class="wp-code-highlight prettyprint linenums:1">
displacement noise (float disScale = 0.1; float disFreq = 1.5;)
{
normal n = normalize(N);

float noi = noise(P * disFreq);

point newP = P - n * noi;

N = calculatenormal(newP);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jbensledge.com/dpa/809/final/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>King&#8217;s Treasure</title>
		<link>http://jbensledge.com/dpa/809/kings-treasure/</link>
		<comments>http://jbensledge.com/dpa/809/kings-treasure/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 20:00:32 +0000</pubDate>
		<dc:creator>Ben Sledge</dc:creator>
				<category><![CDATA[CPSC 809 - Rendering and Shading]]></category>

		<guid isPermaLink="false">http://jbensledge.com/?p=359</guid>
		<description><![CDATA[I really wanted to get Global Illumination and Final Gather working for this render, but it washed out the image way too much. I used MentalRay&#8217;s mia_material for the metal [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_361" class="wp-caption alignleft" style="width: 1034px"><a href="http://jbensledge.com/wp-content/uploads/2012/05/sledge_26.jpg"><img class="size-large wp-image-361" title="sledge_26" src="http://jbensledge.com/wp-content/uploads/2012/05/sledge_26-1024x576.jpg" alt="" width="1024" height="576" /></a><p class="wp-caption-text">Final</p></div>
<div id="attachment_364" class="wp-caption alignleft" style="width: 310px"><a href="http://jbensledge.com/wp-content/uploads/2012/05/Screen-Shot-2012-05-04-at-3.56.55-PM.png"><img class="size-medium wp-image-364" title="Screen Shot 2012-05-04 at 3.56.55 PM" src="http://jbensledge.com/wp-content/uploads/2012/05/Screen-Shot-2012-05-04-at-3.56.55-PM-300x168.png" alt="Ambient Occlusion" width="300" height="168" /></a><p class="wp-caption-text">Ambient Occlusion</p></div>
<div id="attachment_366" class="wp-caption alignleft" style="width: 310px"><a href="http://jbensledge.com/wp-content/uploads/2012/05/Screen-Shot-2012-05-04-at-3.59.21-PM.png"><img src="http://jbensledge.com/wp-content/uploads/2012/05/Screen-Shot-2012-05-04-at-3.59.21-PM-300x168.png" alt="Color" title="Screen Shot 2012-05-04 at 3.59.21 PM" width="300" height="168" class="size-medium wp-image-366" /></a><p class="wp-caption-text">Color</p></div>
<p>I really wanted to get Global Illumination and Final Gather working for this render, but it washed out the image way too much. I used MentalRay&#8217;s mia_material for the metal in the scene. It took a lot of trial and error to get a decent result because there are a ton of options to play with.</p>
<div id="attachment_370" class="wp-caption alignleft" style="width: 310px"><a href="http://jbensledge.com/wp-content/uploads/2012/05/19.jpeg"><img src="http://jbensledge.com/wp-content/uploads/2012/05/19-300x168.jpg" alt="" title="19" width="300" height="168" class="size-medium wp-image-370" /></a><p class="wp-caption-text">An attempt at GI/FG</p></div>
]]></content:encoded>
			<wfw:commentRss>http://jbensledge.com/dpa/809/kings-treasure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fruit Bowl</title>
		<link>http://jbensledge.com/dpa/809/fruit-bowl/</link>
		<comments>http://jbensledge.com/dpa/809/fruit-bowl/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 17:52:45 +0000</pubDate>
		<dc:creator>Ben Sledge</dc:creator>
				<category><![CDATA[CPSC 809 - Rendering and Shading]]></category>

		<guid isPermaLink="false">http://jbensledge.com/?p=315</guid>
		<description><![CDATA[Final Image Reference Progression Textures Grapes For the grapes I used the misss_fast_simple_maya shader for MentalRay. I used a procedural noise pattern as the input for the ambient color and [...]]]></description>
			<content:encoded><![CDATA[<h2>Final Image</h2>
<p><a href="http://jbensledge.com/wp-content/uploads/2012/04/sledge_0023.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/sledge_0023-300x168.jpg" alt="" title="Final Composite" width="300" height="168" class="alignleft size-medium wp-image-320" /></a></p>
<table>
<tr>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/ao.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/ao-150x150.jpg" alt="" title="Ambient Occlusion Pass" width="150" height="150" class="alignleft size-thumbnail wp-image-322" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/zdepth.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/zdepth-150x150.jpg" alt="" title="Z-Depth Pass" width="150" height="150" class="alignleft size-thumbnail wp-image-323" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/color.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/color-150x150.jpg" alt="" title="Color Pass" width="150" height="150" class="alignleft size-thumbnail wp-image-324" /></a></td>
</tr>
</table>
<h2>Reference</h2>
<table>
<tr>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/250px-Grapes_Angoor.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/250px-Grapes_Angoor-150x150.jpg" alt="" title="250px-Grapes_Angoor" width="150" height="150" class="alignleft size-thumbnail wp-image-325" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/Fruit0037_1_M.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/Fruit0037_1_M-150x150.jpg" alt="" title="Fruit0037_1_M" width="150" height="150" class="alignleft size-thumbnail wp-image-330" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/Fruit0033_3_S.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/Fruit0033_3_S-150x150.jpg" alt="" title="Fruit0033_3_S" width="150" height="150" class="alignleft size-thumbnail wp-image-329" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/Fruit0011_1_M.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/Fruit0011_1_M-150x150.jpg" alt="" title="Fruit0011_1_M" width="150" height="150" class="alignleft size-thumbnail wp-image-328" /></a></td>
</tr>
<tr>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/Fruit0009_1_M.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/Fruit0009_1_M-150x150.jpg" alt="" title="Fruit0009_1_M" width="150" height="150" class="alignleft size-thumbnail wp-image-327" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/Fruit0003_3_M.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/Fruit0003_3_M-150x150.jpg" alt="" title="Fruit0003_3_M" width="150" height="150" class="alignleft size-thumbnail wp-image-326" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/Leaves0037_2_S.png"><img src="http://jbensledge.com/wp-content/uploads/2012/04/Leaves0037_2_S-150x150.png" alt="" title="Leaves0037_2_S" width="150" height="150" class="alignleft size-thumbnail wp-image-332" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/img55768924.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/img55768924-150x150.jpg" alt="" title="img55768924" width="150" height="150" class="alignleft size-thumbnail wp-image-331" /></a></td>
</tr>
</table>
<h2>Progression</h2>
<table>
<tr>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/0002.jpeg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/0002-150x150.jpg" alt="" title="0002" width="150" height="150" class="alignleft size-thumbnail wp-image-334" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/0003.jpeg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/0003-150x150.jpg" alt="" title="0003" width="150" height="150" class="alignleft size-thumbnail wp-image-335" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/0011.jpeg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/0011-150x150.jpg" alt="" title="0011" width="150" height="150" class="alignleft size-thumbnail wp-image-336" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/0014.jpeg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/0014-150x150.jpg" alt="" title="0014" width="150" height="150" class="alignleft size-thumbnail wp-image-337" /></a></td>
</tr>
<tr>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/0015.jpeg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/0015-150x150.jpg" alt="" title="0015" width="150" height="150" class="alignleft size-thumbnail wp-image-338" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/0016.jpeg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/0016-150x150.jpg" alt="" title="0016" width="150" height="150" class="alignleft size-thumbnail wp-image-339" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/0017.jpeg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/0017-150x150.jpg" alt="" title="0017" width="150" height="150" class="alignleft size-thumbnail wp-image-340" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/0021.jpeg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/0021-150x150.jpg" alt="" title="0021" width="150" height="150" class="alignleft size-thumbnail wp-image-342" /></a></td>
</tr>
</table>
<h2>Textures</h2>
<table>
<tr>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/apple_text.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/apple_text-150x150.jpg" alt="" title="apple_text" width="150" height="150" class="alignleft size-thumbnail wp-image-345" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/banana_text.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/banana_text-150x150.jpg" alt="" title="banana_text" width="150" height="150" class="alignleft size-thumbnail wp-image-346" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/pear_text.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/pear_text-150x150.jpg" alt="" title="pear_text" width="150" height="150" class="alignleft size-thumbnail wp-image-347" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/plate_text.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/04/plate_text-150x150.jpg" alt="" title="plate_text" width="150" height="150" class="alignleft size-thumbnail wp-image-348" /></a></td>
</tr>
</table>
<h3>Grapes</h3>
<p>For the grapes I used the misss_fast_simple_maya shader for MentalRay. I used a procedural noise pattern as the input for the ambient color and put a spot light directly behind the grapes, pointed at the camera.<br />
<table>
<tr>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/Screen-shot-2012-04-05-at-4.21.43-PM.png"><img src="http://jbensledge.com/wp-content/uploads/2012/04/Screen-shot-2012-04-05-at-4.21.43-PM-150x150.png" alt="" title="Screen shot 2012-04-05 at 4.21.43 PM" width="150" height="150" class="alignleft size-thumbnail wp-image-349" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/Screen-shot-2012-04-05-at-4.22.17-PM.png"><img src="http://jbensledge.com/wp-content/uploads/2012/04/Screen-shot-2012-04-05-at-4.22.17-PM-150x150.png" alt="" title="Screen shot 2012-04-05 at 4.22.17 PM" width="150" height="150" class="alignleft size-thumbnail wp-image-350" /></a></td>
</tr>
</table>
<h3>Bananas</h3>
<p>I used a phong shader for the bananas. To get a realistic peel look I added a little subsurface scatter on the shader.</p>
<table>
<tr>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/Screen-shot-2012-04-05-at-4.10.30-PM.png"><img src="http://jbensledge.com/wp-content/uploads/2012/04/Screen-shot-2012-04-05-at-4.10.30-PM-150x150.png" alt="" title="Screen shot 2012-04-05 at 4.10.30 PM" width="150" height="150" class="alignleft size-thumbnail wp-image-352" /></a></td>
<td><a href="http://jbensledge.com/wp-content/uploads/2012/04/Screen-shot-2012-04-05-at-4.17.19-PM.png"><img src="http://jbensledge.com/wp-content/uploads/2012/04/Screen-shot-2012-04-05-at-4.17.19-PM-150x150.png" alt="" title="Screen shot 2012-04-05 at 4.17.19 PM" width="150" height="150" class="alignleft size-thumbnail wp-image-353" /></a></td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://jbensledge.com/dpa/809/fruit-bowl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Natural History Museum</title>
		<link>http://jbensledge.com/dpa/809/natural-history-museum/</link>
		<comments>http://jbensledge.com/dpa/809/natural-history-museum/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 07:26:45 +0000</pubDate>
		<dc:creator>Ben Sledge</dc:creator>
				<category><![CDATA[CPSC 809 - Rendering and Shading]]></category>

		<guid isPermaLink="false">http://jbensledge.com/?p=295</guid>
		<description><![CDATA[Final Image Process I started by placing the key light(s) in the scene. At first I thought about using area lights, but decided to go with spot lights. I placed [...]]]></description>
			<content:encoded><![CDATA[<h3>Final Image</h3>
<div id="attachment_306" class="wp-caption alignleft" style="width: 682px"><a href="http://jbensledge.com/wp-content/uploads/2012/03/out.jpg"><img class="size-full wp-image-306 " title="Final Composite" src="http://jbensledge.com/wp-content/uploads/2012/03/out.jpg" alt="" width="672" height="378" /></a><p class="wp-caption-text">Final Composite Image</p></div>
<table>
<tbody>
<tr>
<td>
<div id="attachment_309" class="wp-caption alignleft" style="width: 160px"><a href="http://jbensledge.com/wp-content/uploads/2012/03/beauty.jpg"><img class="size-thumbnail wp-image-309" title="beauty" src="http://jbensledge.com/wp-content/uploads/2012/03/beauty-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Beauty Pass</p></div></td>
<td>
<p><div id="attachment_310" class="wp-caption alignleft" style="width: 160px"><a href="http://jbensledge.com/wp-content/uploads/2012/03/occ.jpg"><img class="size-thumbnail wp-image-310" title="occ" src="http://jbensledge.com/wp-content/uploads/2012/03/occ-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Occlusion Pass</p></div></td>
<td>
<p><div id="attachment_311" class="wp-caption alignleft" style="width: 160px"><a href="http://jbensledge.com/wp-content/uploads/2012/03/zdepth.jpg"><img class="size-thumbnail wp-image-311" title="zdepth" src="http://jbensledge.com/wp-content/uploads/2012/03/zdepth-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Z-Depth</p></div></td>
</tr>
</tbody>
</table>
<h3>Process</h3>
<p><div id="attachment_297" class="wp-caption alignleft" style="width: 490px"><a href="http://jbensledge.com/wp-content/uploads/2012/03/key_001.jpeg"><img class="size-full wp-image-297" title="KeyLight" src="http://jbensledge.com/wp-content/uploads/2012/03/key_001.jpeg" alt="" width="480" height="270" /></a><p class="wp-caption-text">The key light</p></div>
<p>I started by placing the key light(s) in the scene. At first I thought about using area lights, but decided to go with spot lights. I placed lights in each &#8220;sun facing&#8221; window and set their color to a light red.</p>
<div id="attachment_298" class="wp-caption alignleft" style="width: 490px"><a href="http://jbensledge.com/wp-content/uploads/2012/03/fill_001.jpeg"><img class="size-full wp-image-298" title="FillLight" src="http://jbensledge.com/wp-content/uploads/2012/03/fill_001.jpeg" alt="" width="480" height="270" /></a><p class="wp-caption-text">The Fill Light</p></div>
<p>Then I added blue fill lights. I used area lights, again in the windows to mimic the natural light that would be in the scene.</p>
<div id="attachment_296" class="wp-caption alignright" style="width: 490px"><a href="http://jbensledge.com/wp-content/uploads/2012/03/keyfill_001.jpeg"><img class="size-full wp-image-296" title="Key&amp;FillLight" src="http://jbensledge.com/wp-content/uploads/2012/03/keyfill_001.jpeg" alt="" width="480" height="270" /></a><p class="wp-caption-text">The Key and the Fill Light Working Together</p></div>
<h3>Technique</h3>
<div id="attachment_300" class="wp-caption alignleft" style="width: 310px"><a href="http://jbensledge.com/wp-content/uploads/2012/03/Screenshot-Hypershade.png"><img class="size-medium wp-image-300" title="LightColorInputs" src="http://jbensledge.com/wp-content/uploads/2012/03/Screenshot-Hypershade-300x187.png" alt="A screen shot of the light color / intensity graphs" width="300" height="187" /></a><p class="wp-caption-text">The Light Color and Intensity of the Key and Fill Lights</p></div>
<p>To make it easier to adjust multiple lights at once, I used Ramp nodes to drive the color and intensity attributes of similar lights.</p>
]]></content:encoded>
			<wfw:commentRss>http://jbensledge.com/dpa/809/natural-history-museum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>conor</title>
		<link>http://jbensledge.com/uncategorized/conor/</link>
		<comments>http://jbensledge.com/uncategorized/conor/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 06:55:30 +0000</pubDate>
		<dc:creator>Ben Sledge</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jbensledge.com/?p=290</guid>
		<description><![CDATA[#! /usr/bin/env python import sys import os if __name__ == &#34;__main__&#34;: # the file you're looking for file_name = &#34;processMe.txt&#34; # get the current directory (where the .py file is) [...]]]></description>
			<content:encoded><![CDATA[<pre class="wp-code-highlight prettyprint linenums:1">#! /usr/bin/env python

import sys
import os

if __name__ == &quot;__main__&quot;:

    # the file you're looking for
    file_name = &quot;processMe.txt&quot;

    # get the current directory (where the .py file is)
    cwd = os.getcwd()

    # create a loop to keep checking for the file (will run forever, so be careful)
    while(True):

        # list the contents of the directory
        files = os.listdir(cwd)

        # loop through the files and check to
        # for a matching file name
        for each_file in files:

            # check the file name
            if each_file == file_name:

                print &quot;Found a File&quot;

                # open Maya here
                # os.system(&quot;some_command with args&quot;) will run a terminal command

                # set the name of the exported file to look for
                export_file_name = &quot;something.mb&quot;

                # set a flag to test if you've found the exported file
                export_file_found = False

                # loop until you find the file
                while( export_file_found != True):

                    # list the contents of the directory
                    # here I've assumed you're saving the Maya file
                    # in the same directory. If that's not the case,
                    # look at stuff online about the os and os.path
                    # Python modules
                    more_files = os.listdir(cwd)

                    # look for the exported file
                    for f in more_files:
                        if f == export_file_name:

                            print &quot;Found export file&quot;

                            # set the flag to true
                            export_file_found = True

                            # get the absolute file path to the original .txt file
                            abs_path = os.path.join(cwd, file_name)

                            # remove the txt file
                            os.remove(abs_path)
                    </pre>
]]></content:encoded>
			<wfw:commentRss>http://jbensledge.com/uncategorized/conor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flour Sack Dance</title>
		<link>http://jbensledge.com/dpa/cpsc-808-animation/flour-sack-dance/</link>
		<comments>http://jbensledge.com/dpa/cpsc-808-animation/flour-sack-dance/#comments</comments>
		<pubDate>Fri, 24 Feb 2012 02:37:09 +0000</pubDate>
		<dc:creator>Ben Sledge</dc:creator>
				<category><![CDATA[CPSC 808 - Animation]]></category>

		<guid isPermaLink="false">http://jbensledge.com/?p=284</guid>
		<description><![CDATA[The goal of this assignment was to explore rhythm and character in animation. I used audio from LMAFO&#8217;s Party Rock Anthem.]]></description>
			<content:encoded><![CDATA[<p><iframe width="420" height="315" src="http://www.youtube.com/embed/QrkHhXQKQlY" frameborder="0" allowfullscreen></iframe><br />
The goal of this assignment was to explore rhythm and character in animation. I used audio from LMAFO&#8217;s Party Rock Anthem. </p>
]]></content:encoded>
			<wfw:commentRss>http://jbensledge.com/dpa/cpsc-808-animation/flour-sack-dance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assignment 3</title>
		<link>http://jbensledge.com/dpa/809/assignment-3/</link>
		<comments>http://jbensledge.com/dpa/809/assignment-3/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 04:58:35 +0000</pubDate>
		<dc:creator>Ben Sledge</dc:creator>
				<category><![CDATA[CPSC 809 - Rendering and Shading]]></category>

		<guid isPermaLink="false">http://jbensledge.com/?p=274</guid>
		<description><![CDATA[Soft Shadows and Reflection.]]></description>
			<content:encoded><![CDATA[<p>Soft Shadows and Reflection.<br />

<a href='http://jbensledge.com/dpa/809/assignment-3/attachment/s-sr4-ls2/' title='s-sr4-ls2'><img width="150" height="150" src="http://jbensledge.com/wp-content/uploads/2012/02/s-sr4-ls2-150x150.png" class="attachment-thumbnail" alt="s-sr4-ls2" title="s-sr4-ls2" /></a>
<a href='http://jbensledge.com/dpa/809/assignment-3/attachment/1-2/' title='1'><img width="150" height="150" src="http://jbensledge.com/wp-content/uploads/2012/02/1-150x150.png" class="attachment-thumbnail" alt="1" title="1" /></a>
<a href='http://jbensledge.com/dpa/809/assignment-3/attachment/tetris/' title='tetris'><img width="150" height="150" src="http://jbensledge.com/wp-content/uploads/2012/02/tetris-150x150.png" class="attachment-thumbnail" alt="tetris" title="tetris" /></a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://jbensledge.com/dpa/809/assignment-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assignment 2</title>
		<link>http://jbensledge.com/dpa/809/assignment-2/</link>
		<comments>http://jbensledge.com/dpa/809/assignment-2/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 19:01:49 +0000</pubDate>
		<dc:creator>Ben Sledge</dc:creator>
				<category><![CDATA[CPSC 809 - Rendering and Shading]]></category>

		<guid isPermaLink="false">http://jbensledge.com/?p=271</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://jbensledge.com/wp-content/uploads/2012/02/sledge_01.png"><img src="http://jbensledge.com/wp-content/uploads/2012/02/sledge_01.png" alt="" title="sledge_01" width="500" height="500" class="alignright size-full wp-image-265" /></a><br /><a href="http://jbensledge.com/wp-content/uploads/2012/02/sledge_02.png"><img src="http://jbensledge.com/wp-content/uploads/2012/02/sledge_02.png" alt="" title="sledge_02" width="500" height="500" class="alignright size-full wp-image-266" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jbensledge.com/dpa/809/assignment-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assignment 1 &#8211; Basic Raytracer</title>
		<link>http://jbensledge.com/dpa/809/assignment-1-basic-raytracer/</link>
		<comments>http://jbensledge.com/dpa/809/assignment-1-basic-raytracer/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 02:50:54 +0000</pubDate>
		<dc:creator>Ben Sledge</dc:creator>
				<category><![CDATA[CPSC 809 - Rendering and Shading]]></category>

		<guid isPermaLink="false">http://jbensledge.com/?p=261</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_262" class="wp-caption alignright" style="width: 510px"><a href="http://jbensledge.com/wp-content/uploads/2012/01/out.jpg"><img src="http://jbensledge.com/wp-content/uploads/2012/01/out.jpg" alt="" title="out" width="500" height="500" class="size-full wp-image-262" /></a><p class="wp-caption-text">Final Image</p></div>
]]></content:encoded>
			<wfw:commentRss>http://jbensledge.com/dpa/809/assignment-1-basic-raytracer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Noodle Ball Kick</title>
		<link>http://jbensledge.com/dpa/cpsc-808-animation/noodle-ball-kick/</link>
		<comments>http://jbensledge.com/dpa/cpsc-808-animation/noodle-ball-kick/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 02:38:25 +0000</pubDate>
		<dc:creator>Ben Sledge</dc:creator>
				<category><![CDATA[CPSC 808 - Animation]]></category>

		<guid isPermaLink="false">http://jbensledge.com/?p=288</guid>
		<description><![CDATA[This assignment was all about timing, spacing and squash and stretch.]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="315" src="http://www.youtube.com/embed/UlTuhvbMiLw" frameborder="0" allowfullscreen></iframe><br />
This assignment was all about timing, spacing and squash and stretch. </p>
]]></content:encoded>
			<wfw:commentRss>http://jbensledge.com/dpa/cpsc-808-animation/noodle-ball-kick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

