<?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>Brian Freisinger &#187; subdivision surface</title>
	<atom:link href="http://www.disopolis.com/wordpress/tag/subdivision-surface/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.disopolis.com/wordpress</link>
	<description>VFX portfolio</description>
	<lastBuildDate>Sat, 13 Apr 2013 01:39:15 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Vray &#8211; Mass SubDivision Surface Flag for Maya</title>
		<link>http://www.disopolis.com/wordpress/2011/vray-mass-subdivision-surface-flag-for-maya/</link>
		<comments>http://www.disopolis.com/wordpress/2011/vray-mass-subdivision-surface-flag-for-maya/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 00:33:43 +0000</pubDate>
		<dc:creator><![CDATA[faust]]></dc:creator>
				<category><![CDATA[CG]]></category>
		<category><![CDATA[Maya]]></category>
		<category><![CDATA[Vray]]></category>
		<category><![CDATA[subdivision surface]]></category>

		<guid isPermaLink="false">http://www.disopolis.com/wordpress/?p=30</guid>
		<description><![CDATA[&#160; &#160; &#160; &#160; When you have a lot of objects in a scene and you want to utilize Vray&#8217;s subdivision flag, it can be time consuming to go through the whole lot and flag each one by one. So here&#8217;s a quick mel script to help out. Select all your objects you want flagged as Subdiv [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2011/10/vray_for_maya_logo.png"><img class="alignleft size-medium wp-image-32" title="vray_for_maya_logo" src="http://www.disopolis.com/wordpress/wp-content/uploads/2011/10/vray_for_maya_logo-300x200.png" alt="" width="180" height="120" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>When you have a lot of objects in a scene and you want to utilize Vray&#8217;s subdivision flag, it can be time consuming to go through the whole lot and flag each one by one.</p>
<p>So here&#8217;s a quick mel script to help out.</p>
<p>Select all your objects you want flagged as Subdiv and then run this in the script editor:</p>
<p>&nbsp;</p>
<div>
<p>$selected = `ls -sl -l`;</p>
<p>&nbsp;</p>
<p>for ($i=0;$i &lt; size($selected);$i++)</p>
<p>{</p>
<p>$selShape = `listRelatives -shapes $selected[$i]`;</p>
<p>$selFullPath = ($selected[$i]+&#8221;|&#8221;+$selShape[<wbr>0]);</wbr></p>
<p>vrayAddAttr $selFullPath vraySubdivEnable;vrayAddAttr $selFullPath vraySubdivUVsAtBorders;<wbr>vrayAddAttr $selFullPath vraySubdivUVs;</wbr></p>
<p>//print ($selFullPath+&#8221;\n&#8221;);</p>
<p>}</p>
<p><span style="color: #993300;"><em> (Update/Edit : If you find the code throwing you an error like this:</em></span></p>
<p><span style="color: #993300;"><em>// Error: $selFullPath = ($selected[$i]+”|”+$selShape[0]);</em></span></p>
<p><span style="color: #993300;"><em>//</em></span></p>
<p><span style="color: #993300;"><em>// Error: Syntax error // </em></span></p>
<p><span style="color: #993300;"><em>You need to change the quote marks ( ”|” ) </em></span></p>
<p><span style="color: #993300;"><em>Just select them and retype. You can thank wordpress text formatting for that.)</em></span></p>
<p>&nbsp;</p>
<p>You can then set your globals subdiv to be lower (like 6 instead of 256) and flag the important ones to be higher if needed.</p>
<p>There isn&#8217;t a good rule of thumb for how much to subD. It&#8217;s based a lot on how close you get to camera and how dense the geo was to start with.</p>
<p>In the event you&#8217;re using a displacement map, you&#8217;ll want to push this up higher. I find somewhere around the 40-50 gets me where I need  to be without breaking my rendering bank. Again, in the event I need to scrap the paint via camera move I may start pushing this up.  I will however say, I&#8217;ve found that a lot of  &#8221;my renders are really slow&#8221; come from people flagging the subD on their models and leaving it at default. Again, if 90% of my scene needs a 4-6 subD, I&#8217;ll go into the other 10% and give it an override flag, bringing it up to the minimum level to look good.</p>
<p>&nbsp;</p>
<p><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2011/10/vraySubDGlobal01.jpg"><img class="alignleft size-medium wp-image-34" title="vraySubDGlobal01" src="http://www.disopolis.com/wordpress/wp-content/uploads/2011/10/vraySubDGlobal01-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p>&nbsp;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.disopolis.com/wordpress/2011/vray-mass-subdivision-surface-flag-for-maya/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
