<?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>NikosGatos.com &#124; Blog</title>
	<atom:link href="http://blog.nikosgatos.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nikosgatos.com</link>
	<description>graphics&#124;films&#124;games&#124;programming&#124;misc</description>
	<lastBuildDate>Wed, 11 Feb 2009 15:13:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RenderMan: Optimization is Everything</title>
		<link>http://blog.nikosgatos.com/index.php/2009/01/29/renderman-optimization-is-everything/</link>
		<comments>http://blog.nikosgatos.com/index.php/2009/01/29/renderman-optimization-is-everything/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 23:56:52 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[RenderMan]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=22</guid>
		<description><![CDATA[RenderMan (PRMan) can be a very fast and efficient renderer as long as you spend some time optimizing the asset you are developing. Here are a few useful pointers.

Always pre-bake diffuse occlusion and subsurface scattering into pointclouds/brickmaps whenever possible.
Always pre-filter your textures to RenderMan&#8217;s native format.
Always use a higher local shading rate for objects that [...]]]></description>
			<content:encoded><![CDATA[<p>RenderMan (PRMan) can be a very fast and efficient renderer as long as you spend some time optimizing the asset you are developing. Here are a few useful pointers.</p>
<ul>
<li>Always pre-bake diffuse occlusion and subsurface scattering into pointclouds/brickmaps whenever possible.</li>
<li>Always pre-filter your textures to RenderMan&#8217;s native format.</li>
<li>Always use a higher local shading rate for objects that don&#8217;t require much detail.</li>
<li>Always use trace sets when dealing with raytracing.</li>
<li>Always check the displacement bounding box.</li>
<li>Always cache your shadow or deep shadow maps to disk.</li>
<li>Always check the XML stats to identify which parts of the objects are taking the longest time to render.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2009/01/29/renderman-optimization-is-everything/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The importance of having an efficient pipeline</title>
		<link>http://blog.nikosgatos.com/index.php/2008/10/25/the-importance-of-having-an-efficient-pipeline/</link>
		<comments>http://blog.nikosgatos.com/index.php/2008/10/25/the-importance-of-having-an-efficient-pipeline/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 19:06:30 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Pipeline]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=13</guid>
		<description><![CDATA[Having both worked at small and large production facilities, one can not stress enough the importance of having a well set up pipeline. Earlier this year the company I work for undertook the gigantic task of delivering more than 750 shots for Walt Disney&#8217;s latest feature film. See IMDB.
Story telling aside, the more interesting aspect [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="float: left;" src="http://blog.nikosgatos.com/wp-content/uploads/2008/10/pipeline.jpg" alt="Pipeline" width="170" height="252" />Having both worked at small and large production facilities, one can not stress enough the importance of having a well set up pipeline. Earlier this year the company I work for undertook the gigantic task of delivering more than 750 shots for Walt Disney&#8217;s latest feature film. See <a title="IMDB" href="http://www.imdb.com/title/tt1014775/" target="_blank">IMDB.</a></p>
<p>Story telling aside, the more interesting aspect of this production was how extremely well the pipeline was set up. Apart from indecisive directors, producers and clients, who all affect the outcome of a project, the one thing that will decide whether your life will be a walk in the park or a living hell is the All Mighty Pipeline.</p>
<p>For outsiders and people just starting out in the industry the term doesn&#8217;t mean much but let me give an example. If you were assigned the task of transporting 100 litres of water from place A to B. Would you happily walk back and forth with a bucket until you filled enough or would you spend a few days first building an irrigation system that could transport the water to place B in a just matter of minutes? In small quantities it would probably be wiser to just use the bucket, but what if you were instead asked to transport 100.000 litres? It would be incredibly stupid to do this by hand and in the 3D world the exact same thing applies.</p>
<p>So what is an efficient pipeline? First of all it should be set up in a way so that the same task can be repeated hundreds of times without much user effort. Everything that is likely to be repeated more than twice should fall into the consideration of being automated.</p>
<p>All major 3D applications support scripting and you don&#8217;t have to be an expert at it either because most generic commands are instantly echoed in the command log. By simply running a cut &#8216;n paste operation on a series of commands you can instantly batch a command to be run hundreds of times!</p>
<p>Another issue that always springs up, when working in an environment with many artists, is naming convention. Everyone has his own great idea on how to name a file and if you combine everyone&#8217;s ideas at the same time you <em>will</em> end up with a toxic cocktail that gives you a hangover lasting much longer than the usual weekend.</p>
<p>Fortunately there is a very easy solution to this problem. Don&#8217;t allow the user any form of manual intervention. Everything should be handled through custom made tools that, behind the scenes, puts and names files in the correct place. Trust me, when a deadline approaches you will thank your mighty RenderGod that you organised your files in a good and efficient manner.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2008/10/25/the-importance-of-having-an-efficient-pipeline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MEL: Find and edit the source of a procedure</title>
		<link>http://blog.nikosgatos.com/index.php/2008/09/23/mel-find-and-edit-the-source-of-a-procedure/</link>
		<comments>http://blog.nikosgatos.com/index.php/2008/09/23/mel-find-and-edit-the-source-of-a-procedure/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 14:38:31 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[Maya]]></category>
		<category><![CDATA[MEL]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=12</guid>
		<description><![CDATA[The following script opens a MEL file in a text editor by checking where queried procedure is stored. As an example Notepad is used for Windows and Nedit for Linux.
Usage:
edit &#8220;procname&#8221;
Limitations:
The script only finds global procedures that have already been sourced

global proc edit( string $file ) {


&#160; &#160; string $result = `whatIs $file`;


&#160; &#160; string [...]]]></description>
			<content:encoded><![CDATA[<p>The following script opens a MEL file in a text editor by checking where queried procedure is stored. As an example Notepad is used for Windows and Nedit for Linux.</p>
<p>Usage:<br />
edit &#8220;procname&#8221;</p>
<p>Limitations:<br />
The script only finds global procedures that have already been sourced</p>
<div class="geshi no perl">
<div class="head">global proc edit( string $file ) {</div>
<ol>
<li class="li1">
<div class="de1">&nbsp; &nbsp; string <span class="re0">$result</span> = `whatIs <span class="re0">$file</span>`;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; string <span class="re0">$buffer</span><span class="br0">&#91;</span><span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; tokenize<span class="br0">&#40;</span> <span class="re0">$result</span>, <span class="st0">&quot; &quot;</span>, <span class="re0">$buffer</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>`about -linux`<span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">exec</span><span class="br0">&#40;</span> <span class="st0">&quot;nedit &quot;</span> + <span class="re0">$buffer</span><span class="br0">&#91;</span> size<span class="br0">&#40;</span><span class="re0">$buffer</span><span class="br0">&#41;</span> &#8211; <span class="nu0">1</span> <span class="br0">&#93;</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span>`about -nt`<span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">exec</span><span class="br0">&#40;</span> <span class="st0">&quot;notepad &quot;</span> + <span class="re0">$buffer</span><span class="br0">&#91;</span> size<span class="br0">&#40;</span><span class="re0">$buffer</span><span class="br0">&#41;</span> &#8211; <span class="nu0">1</span> <span class="br0">&#93;</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2008/09/23/mel-find-and-edit-the-source-of-a-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MEL: Setting the value of a Slim attribute</title>
		<link>http://blog.nikosgatos.com/index.php/2008/07/11/mel-setting-the-value-of-a-slim-attribute/</link>
		<comments>http://blog.nikosgatos.com/index.php/2008/07/11/mel-setting-the-value-of-a-slim-attribute/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 17:06:35 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[Maya]]></category>
		<category><![CDATA[RenderMan]]></category>
		<category><![CDATA[MEL]]></category>
		<category><![CDATA[Slim]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=11</guid>
		<description><![CDATA[Setting the value of a Slim attribute, from MEL, requires a bit more overhead compared to the normal Maya attribute. The following example shows how it can be done.

string $palette = `slimcmd slim FindPalette &#8220;MYPALETTE&#8221;`;


string $all = `slimcmd $palette GetAppearances`;


string $shaders&#91;&#93;;


tokenize&#40; $all, &#34; &#34;, $shaders &#41;;


&#160;


for &#40; $s in $shaders &#41; &#123;


&#160; &#160; string $attr [...]]]></description>
			<content:encoded><![CDATA[<p>Setting the value of a Slim attribute, from MEL, requires a bit more overhead compared to the normal Maya attribute. The following example shows how it can be done.</p>
<div class="geshi no perl">
<div class="head">string $palette = `slimcmd slim FindPalette &#8220;MYPALETTE&#8221;`;</div>
<ol>
<li class="li1">
<div class="de1">string <span class="re0">$all</span> = `slimcmd <span class="re0">$palette</span> GetAppearances`;</div>
</li>
<li class="li1">
<div class="de1">string <span class="re0">$shaders</span><span class="br0">&#91;</span><span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">tokenize<span class="br0">&#40;</span> <span class="re0">$all</span>, <span class="st0">&quot; &quot;</span>, <span class="re0">$shaders</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">for</span> <span class="br0">&#40;</span> <span class="re0">$s</span> in <span class="re0">$shaders</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; string <span class="re0">$attr</span> = `slimcmd <span class="re0">$s</span> GetProperties -name <span class="st0">&quot;MYPROPERTY&quot;</span>`;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span> <span class="re0">$attr</span> <span class="sy0">!</span>= <span class="st0">&quot;&quot;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; slimcmd <span class="re0">$attr</span> SetValue <span class="st0">&quot;MYVALUE&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2008/07/11/mel-setting-the-value-of-a-slim-attribute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Only in Soho</title>
		<link>http://blog.nikosgatos.com/index.php/2008/06/23/only-in-soho/</link>
		<comments>http://blog.nikosgatos.com/index.php/2008/06/23/only-in-soho/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 21:17:36 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=8</guid>
		<description><![CDATA[
I saw this sign the other day when walking through Soho.
Everyone has the right to a little bit of privacy I guess&#8230;  
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://blog.nikosgatos.com/wp-content/uploads/2008/06/onlyinsoho.jpg" alt="Only In Soho" /></p>
<p>I saw this sign the other day when walking through Soho.<br />
Everyone has the right to a little bit of privacy I guess&#8230; <img src='http://blog.nikosgatos.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2008/06/23/only-in-soho/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oscar In Da House</title>
		<link>http://blog.nikosgatos.com/index.php/2008/06/15/oscar-in-da-house/</link>
		<comments>http://blog.nikosgatos.com/index.php/2008/06/15/oscar-in-da-house/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 13:26:31 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=9</guid>
		<description><![CDATA[
I don&#8217;t want to brag or anything, but I had the honour to hold the Oscar for approximately 53 seconds in a rare photo opportunity. This was for the work undertaken by Cinesite on the Golden Compass movie.
How coOol is that?!
Hmm&#8230; ok maybe not that cool, but at least I now know that it&#8217;s not [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://blog.nikosgatos.com/wp-content/uploads/2008/06/oscar.jpg" alt="Oscar In Da House" /></p>
<p>I don&#8217;t want to brag or anything, but I had the honour to hold the Oscar for approximately 53 seconds in a rare photo opportunity. This was for the work undertaken by Cinesite on the Golden Compass movie.</p>
<p>How coOol is that?!</p>
<p>Hmm&#8230; ok maybe not that cool, but at least I now know that it&#8217;s not made of plastic.</p>
<p>As a matter of fact its damn heavy. <img src='http://blog.nikosgatos.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2008/06/15/oscar-in-da-house/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MEL: Setting the color for multiple lights</title>
		<link>http://blog.nikosgatos.com/index.php/2008/05/16/mel-setting-the-color-for-multiple-lights/</link>
		<comments>http://blog.nikosgatos.com/index.php/2008/05/16/mel-setting-the-color-for-multiple-lights/#comments</comments>
		<pubDate>Fri, 16 May 2008 11:25:44 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[Maya]]></category>
		<category><![CDATA[MEL]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=6</guid>
		<description><![CDATA[Here&#8217;s a snippet if you want to set the RGB color for multiple lights at once.

colorEditor;


if &#40;`colorEditor -query -result`&#41; &#123;


&#160; &#160; string $lights&#91;&#93; = `ls -sl -dag -type light`;


&#160; &#160; float $values&#91;&#93;;


&#160; &#160; $values = `colorEditor -query -rgb`;


&#160;


&#160; &#160; for &#40; $l in $lights &#41; &#123;


&#160; &#160; &#160; &#160; setAttr &#40;$l + &#34;.color&#34;&#41; -type double3 [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a snippet if you want to set the RGB color for multiple lights at once.</p>
<div class="geshi no perl">
<div class="head">colorEditor;</div>
<ol>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span>`colorEditor -query -result`<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; string <span class="re0">$lights</span><span class="br0">&#91;</span><span class="br0">&#93;</span> = `ls -sl -dag -type light`;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; float <span class="re0">$values</span><span class="br0">&#91;</span><span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">$values</span> = `colorEditor -query -rgb`;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">for</span> <span class="br0">&#40;</span> <span class="re0">$l</span> in <span class="re0">$lights</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; setAttr <span class="br0">&#40;</span><span class="re0">$l</span> + <span class="st0">&quot;.color&quot;</span><span class="br0">&#41;</span> -type double3 <span class="re0">$values</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="re0">$values</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="br0">&#93;</span> <span class="re0">$values</span><span class="br0">&#91;</span><span class="nu0">2</span><span class="br0">&#93;</span> ;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2008/05/16/mel-setting-the-color-for-multiple-lights/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Save Our Soho</title>
		<link>http://blog.nikosgatos.com/index.php/2008/05/15/save-our-soho/</link>
		<comments>http://blog.nikosgatos.com/index.php/2008/05/15/save-our-soho/#comments</comments>
		<pubDate>Wed, 14 May 2008 23:08:17 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Soho]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=5</guid>
		<description><![CDATA[
Apparently Westminster Council is proposing to impose a ban on all outdoor drinking in Soho, in the heart of London&#8217;s West End. Considering how cramped conditions already are in the pubs it would be near impossible to enjoy oneself on a night out.
From a health point of view it is obviously good because fewer people [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.nikosgatos.com/wp-content/uploads/2008/05/soho_pub.jpg" alt="A pub in Soho" /><br />
Apparently Westminster Council is proposing to impose a ban on all outdoor drinking in Soho, in the heart of London&#8217;s West End. Considering how cramped conditions already are in the pubs it would be near impossible to enjoy oneself on a night out.</p>
<p>From a health point of view it is obviously good because fewer people would go out drinking, but it would spell a disaster for the balance sheets of the pub owners and also Soho would lose a lot of its charm.</p>
<p>If you are a London resident you can sign a petition on the governments website here:<br />
<a href="http://petitions.pm.gov.uk/SaveOurSoho/">http://petitions.pm.gov.uk/SaveOurSoho/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2008/05/15/save-our-soho/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MEL: Look through Light or Camera</title>
		<link>http://blog.nikosgatos.com/index.php/2008/05/14/mel-look-through-light-or-camera/</link>
		<comments>http://blog.nikosgatos.com/index.php/2008/05/14/mel-look-through-light-or-camera/#comments</comments>
		<pubDate>Tue, 13 May 2008 22:38:19 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[Maya]]></category>
		<category><![CDATA[MEL]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=4</guid>
		<description><![CDATA[As a Lighting TD I find myself often having to look through different lights to position them correctly in the scene. Here&#8217;s a MEL procedure for opening the light (or camera) in a seperate window.
Usage: lookThrough( `ls -sl` );

proc lookThrough( string $selection[] ) {


&#160; &#160; string $shapeType&#91;&#93; = `listRelatives -shapes $selection&#91;0&#93;`;


&#160; &#160; string $type = [...]]]></description>
			<content:encoded><![CDATA[<p>As a Lighting TD I find myself often having to look through different lights to position them correctly in the scene. Here&#8217;s a MEL procedure for opening the light (or camera) in a seperate window.</p>
<p>Usage: lookThrough( `ls -sl` );</p>
<div class="geshi no tcl">
<div class="head">proc lookThrough( string $selection[] ) {</div>
<ol>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw2">string</span> <span class="re0">$shapeType</span><span class="br0">&#91;</span><span class="br0">&#93;</span> = `listRelatives -shapes <span class="re0">$selection</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span>`<span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw2">string</span> <span class="re0">$type</span> = nodeType<span class="br0">&#40;</span> <span class="re0">$shapeType</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span> <span class="re0">$type</span> == <span class="st0">&quot;spotLight&quot;</span> || <span class="re0">$type</span> == <span class="st0">&quot;areaLight&quot;</span> || <span class="re0">$type</span> == <span class="st0">&quot;volumeLight&quot;</span> || <span class="re0">$type</span> == <span class="st0">&quot;camera&quot;</span> || <span class="re0">$type</span> == <span class="st0">&quot;directionalLight&quot;</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">string</span> <span class="re0">$wndName</span> = <span class="st0">&quot;&quot;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">string</span> <span class="re0">$cmdStr</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">string</span> <span class="re0">$whichPanel</span> = `getPanel -withLabel <span class="re0">$selection</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span>`<span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">string</span> <span class="re0">$panelType</span> = <span class="st0">&quot;modelPanel&quot;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">string</span> <span class="re0">$panelLabel</span> = <span class="re0">$selection</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$wndName</span> = <span class="re0">$whichPanel</span> + <span class="st0">&quot;Window&quot;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="st0">&quot;&quot;</span> <span class="sy0">!</span>= <span class="re0">$whichPanel</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>`panel -q -to <span class="re0">$whichPanel</span>`<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showWindow <span class="re0">$wndName</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">else</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$cmdStr</span> = <span class="br0">&#40;</span><span class="re0">$panelType</span> + <span class="st0">&quot; -e -to &quot;</span> + <span class="re0">$whichPanel</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">eval</span> <span class="re0">$cmdStr</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">else</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$cmdStr</span> = <span class="br0">&#40;</span><span class="re0">$panelType</span> + <span class="st0">&quot; -l <span class="es0">\&quot;</span>&quot;</span>+ <span class="re0">$panelLabel</span> +<span class="st0">&quot;<span class="es0">\&quot;</span> -to;&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">eval</span> <span class="re0">$cmdStr</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$whichPanel</span> = `getPanel -withLabel <span class="re0">$selection</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span>`<span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; lookThru <span class="re0">$whichPanel</span> <span class="re0">$selection</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2008/05/14/mel-look-through-light-or-camera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome</title>
		<link>http://blog.nikosgatos.com/index.php/2008/05/12/hello/</link>
		<comments>http://blog.nikosgatos.com/index.php/2008/05/12/hello/#comments</comments>
		<pubDate>Mon, 12 May 2008 20:54:04 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=1</guid>
		<description><![CDATA[Welcome to my brand new blog from WordPress! On these pages I will blog a little bit of anything that comes into my mind. Stay tuned&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Welcome to my brand new blog from WordPress! On these pages I will blog a little bit of anything that comes into my mind. Stay tuned&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2008/05/12/hello/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
