<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Making Maya&#8217;s Python palatable</title>
	<atom:link href="http://porg.es/blog/making-mayas-python-palatable/feed" rel="self" type="application/rss+xml" />
	<link>http://porg.es/blog/making-mayas-python-palatable</link>
	<description></description>
	<lastBuildDate>Tue, 27 Dec 2011 14:16:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Porges</title>
		<link>http://porg.es/blog/making-mayas-python-palatable/comment-page-1#comment-140906</link>
		<dc:creator>Porges</dc:creator>
		<pubDate>Sun, 09 Aug 2009 09:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/?p=300#comment-140906</guid>
		<description>Yes, I never meant it to be more than an easier, or &#039;more natural&#039; syntax-hack for those coming from Python. That&#039;s why I named it &quot;Wrapper&quot;! :)

For what it&#039;s worth, I ended up extending this to be a little bit smarter... for one thing this short example only affects the first object in the array returned by &lt;code&gt;cmds.sphere&lt;/code&gt;. However, I don&#039;t seem to have kept it (I just cooked it up for a short Uni project).

Thanks for your comments :)</description>
		<content:encoded><![CDATA[<p>Yes, I never meant it to be more than an easier, or &#8216;more natural&#8217; syntax-hack for those coming from Python. That&#8217;s why I named it &#8220;Wrapper&#8221;! <img src="http://porg.es/blog/wp-content/plugins/wp-smiley-switcher/noktahhitam/icon_smile.gif" alt="" /></p>
<p>For what it&#8217;s worth, I ended up extending this to be a little bit smarter&#8230; for one thing this short example only affects the first object in the array returned by <code>cmds.sphere</code>. However, I don&#8217;t seem to have kept it (I just cooked it up for a short Uni project).</p>
<p>Thanks for your comments <img src="http://porg.es/blog/wp-content/plugins/wp-smiley-switcher/noktahhitam/icon_smile.gif" alt="" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob T.</title>
		<link>http://porg.es/blog/making-mayas-python-palatable/comment-page-1#comment-140658</link>
		<dc:creator>Rob T.</dc:creator>
		<pubDate>Fri, 07 Aug 2009 22:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/?p=300#comment-140658</guid>
		<description>Nice trick, but your comparison is not really fair.  Your negative example is using the &quot;sphere&quot; command to get and set the radius attribute.  Then, your code is little more than a string substitution into the setAttr and getAttr commands.  Nice use of Python, by the way, but not a substitution for the &quot;sphere&quot; command.  The actual Maya.cmds example that you are addressing is:

&lt;pre&gt;s = cmds.sphere()
r = cmds.getAttr( &#039;%s.radius&#039;%(s) )
cmds.setAttr( &#039;%s.radius&#039;%(s), 10 )&lt;/pre&gt;

I&#039;m not criticizing your skills &lt;em&gt;at all&lt;/em&gt;.  I&#039;ve just had to diffuse a few viral e-mail threads at my studio claiming your Wrapper class is some sort of object-oriented Maya.cmds wrapper, when it only wraps setAttr and getAttr.</description>
		<content:encoded><![CDATA[<p>Nice trick, but your comparison is not really fair.  Your negative example is using the &#8220;sphere&#8221; command to get and set the radius attribute.  Then, your code is little more than a string substitution into the setAttr and getAttr commands.  Nice use of Python, by the way, but not a substitution for the &#8220;sphere&#8221; command.  The actual Maya.cmds example that you are addressing is:</p>
<pre>s = cmds.sphere()
r = cmds.getAttr( '%s.radius'%(s) )
cmds.setAttr( '%s.radius'%(s), 10 )</pre>
<p>I&#8217;m not criticizing your skills <em>at all</em>.  I&#8217;ve just had to diffuse a few viral e-mail threads at my studio claiming your Wrapper class is some sort of object-oriented Maya.cmds wrapper, when it only wraps setAttr and getAttr.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

