<?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>Technical Art for Games &#187; MEL</title>
	<atom:link href="http://adammechtley.com/category/mel/feed/" rel="self" type="application/rss+xml" />
	<link>http://adammechtley.com</link>
	<description>Tips, Tutorials, and Tools - by Adam Mechtley</description>
	<lastBuildDate>Wed, 14 Jul 2010 02:27:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Problems with allNodeTypes Command</title>
		<link>http://adammechtley.com/2009/12/problems-with-allnodetypes-command/</link>
		<comments>http://adammechtley.com/2009/12/problems-with-allnodetypes-command/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 21:48:39 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[MEL]]></category>
		<category><![CDATA[Maya Python]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Maya]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[Undocumented]]></category>

		<guid isPermaLink="false">http://adammechtley.com/?p=545</guid>
		<description><![CDATA[Oftentimes, when loading your own custom tool set, you may want to confirm the existence of a plug-in on the client machine in order to prevent weird errors. Specifically, if you create a tool that works with a custom node, you may want to verify the node&#8217;s existence using the allNodeTypes command. Unfortunately, this command [...]]]></description>
			<content:encoded><![CDATA[<p>Oftentimes, when loading your own custom tool set, you may want to confirm the existence of a plug-in on the client machine in order to prevent weird errors. Specifically, if you create a tool that works with a custom node, you may want to verify the node&#8217;s existence using the <code>allNodeTypes</code> command. Unfortunately, this command has a really quirky problem when used in Python.<br />
<span id="more-545"></span><br />
The first thing worth mentioning is that this command is undocumented in all current versions of Maya with Python support (8.5, 2008, 2009, and 2010). Thus, you are using it at your own risk. Nonetheless, because it can be really useful, we should risk it! The command basically returns a list of all <em>specific</em> node types registered in the Maya session. I say &#8220;specific&#8221; here because it doesn&#8217;t return un-creatable parent classes for nodes (e.g. dagObject), but rather only those those which can be created using the <code>createNode</code> command. Consequently, you may want to search this list for your custom node and load its plug-in file if the node is not registered in the current session.</p>
<p>While the command seems to behave as expected in MEL, it does <em>not</em> currently work as expected in Python. Namely, if you first call this command from Python, then the first time it is called it will return <code>None</code>. Thus, to work around this problem, you should either first call the command from MEL, or make the first invocation form Python a dummy, as in this example:</p>
<pre class="code">__allNodes__ = cmds.allNodeTypes() # This returns None
__allNodes__ = cmds.allNodeTypes() # This returns the list and can therefore be used throughout your module</pre>
]]></content:encoded>
			<wfw:commentRss>http://adammechtley.com/2009/12/problems-with-allnodetypes-command/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hip Constraint and Shoulder Constraint Update</title>
		<link>http://adammechtley.com/2009/01/hip-constraint-and-shoulder-constraint-update/</link>
		<comments>http://adammechtley.com/2009/01/hip-constraint-and-shoulder-constraint-update/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 16:38:45 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[MEL]]></category>
		<category><![CDATA[Maya Python]]></category>
		<category><![CDATA[Rigging]]></category>
		<category><![CDATA[3D Animation]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.adammechtley.com/?p=331</guid>
		<description><![CDATA[Following in my pattern of frequent updates, I uploaded more revisions this morning to both the shoulder constraint and hip constraint. The revision, which is the same in both, is another exception to handle a possible singularity. I never actually had it happen to me in practice, but I realized it was possible when I [...]]]></description>
			<content:encoded><![CDATA[<p>Following in my pattern of frequent updates, I uploaded more revisions this morning to both the <a title="AM_ShoulderConstraint Python Node" href="../../../tools/maya/#PythonPlugin_ShoulderConstraint">shoulder constraint</a> and <a title="AM_HipConstraint Python Node" href="../../../tools/maya/#PythonPlugin_HipConstraint">hip constraint</a>.</p>
<p>The revision, which is the same in both, is another exception to handle a possible singularity. I never actually had it happen to me in practice, but I realized it was possible when I stopped to think about it. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://adammechtley.com/2009/01/hip-constraint-and-shoulder-constraint-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hip Constraint Release and Shoulder Constraint Update</title>
		<link>http://adammechtley.com/2009/01/hip-constraint-release-and-shoulder-constraint-update/</link>
		<comments>http://adammechtley.com/2009/01/hip-constraint-release-and-shoulder-constraint-update/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 23:33:37 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[MEL]]></category>
		<category><![CDATA[Maya Python]]></category>
		<category><![CDATA[Rigging]]></category>
		<category><![CDATA[3D Animation]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.adammechtley.com/?p=326</guid>
		<description><![CDATA[This morning I finally finished the hip constraint! You can now download it here. Just like the shoulder constraint, it comes with MEL scripts designed to assist in setup. Speaking of the shoulder constraint, I found some pretty egregious math errors in my shoulder constraint node, so I have uploaded another update to it. Not [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I finally finished the hip constraint! You can now <a title="AM_HipConstraint Python Node" href="../../../tools/maya/#PythonPlugin_HipConstraint">download it here</a>. Just like the shoulder constraint, it comes with MEL scripts designed to assist in setup.</p>
<p>Speaking of the shoulder constraint, I found some pretty egregious math errors in my <a title="AM_ShoulderConstraint Python Node" href="../../../tools/maya/#PythonPlugin_ShoulderConstraint">shoulder constraint node</a>, so I have uploaded another update to it. Not only does it actually work as intended now, the math is greatly simplified and more closely resembles what you need to do to port it into game code.</p>
<p>Enjoy, and please let me know if you have any problems while using it!</p>
]]></content:encoded>
			<wfw:commentRss>http://adammechtley.com/2009/01/hip-constraint-release-and-shoulder-constraint-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The New Tools Are Here!</title>
		<link>http://adammechtley.com/2009/01/the-new-tools-are-here/</link>
		<comments>http://adammechtley.com/2009/01/the-new-tools-are-here/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 00:16:31 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[MEL]]></category>
		<category><![CDATA[Maya Python]]></category>
		<category><![CDATA[Rigging]]></category>
		<category><![CDATA[3D Animation]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[Rebolt]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.adammechtley.com/?p=302</guid>
		<description><![CDATA[Because making good videos takes a bit of time, I have fallen a bit behind on the next rigging ones I have lined up. However, because all of the technology I explain in the videos already exists, I decided to go ahead and put it up for download! What this means is although you cannot [...]]]></description>
			<content:encoded><![CDATA[<p>Because making good videos takes a bit of time, I have fallen a bit behind on the next rigging ones I have lined up. However, because all of the technology I explain in the videos already exists, I decided to go ahead and put it up for download! What this means is although you cannot yet see the videos where I explain how and why I made these tools the way I did, you are free to go ahead and <a title="Free Maya Tools - MEL Scripts, Python Scripts, Python Nodes" href="../../../tools/maya/">download them</a> and try them out.</p>
<p>There are a variety of different ones up there, but in particular I would like to point you to the <a title="AM_ShoulderConstraint Python Node" href="../../../tools/maya/#PythonPlugin_ShoulderConstraint">shoulder constraint node</a> I made in Python. This is my first Python plugin so I would really appreciate any feedback you have while using it. Please note the MEL Scripts and the example file that I have included in the ZIP as well, as these should greatly assist in using the new plugin.</p>
<p>In other news, <a title ="!Rebolt! Info" href="http://tinyurl.com/reboltinfo">!Rebolt!</a> finally made it through Apple&#8217;s mysterious approval process. Go ahead and <a title ="Buy !Rebolt! for $0.99" href="http://tr.im/4ixp">buy it</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://adammechtley.com/2009/01/the-new-tools-are-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Video Tutorial</title>
		<link>http://adammechtley.com/2008/12/new-video-tutorial/</link>
		<comments>http://adammechtley.com/2008/12/new-video-tutorial/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 03:13:21 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[MEL]]></category>
		<category><![CDATA[Rigging]]></category>
		<category><![CDATA[3D Animation]]></category>
		<category><![CDATA[Minotaur China Shop]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.adammechtley.com/?p=239</guid>
		<description><![CDATA[I have a bit more time to start fleshing out the site better and I have posted a new rigging video tutorial and added an additional page where you can currently download free Maya tools. Keep your eyes peeled over the holidays, as I should have some time to add more new content. In other [...]]]></description>
			<content:encoded><![CDATA[<p>I have a bit more time to start fleshing out the site better and I have posted a <a href="../../../tutorials/rigging/aim-constraints/">new rigging video tutorial</a> and added an additional page where you can currently <a title="Free Maya Tools - MEL Scripts, Python Scripts, Python Nodes" href="../../../tools/maya/">download free Maya tools</a>. Keep your eyes peeled over the holidays, as I should have some time to add more new content.</p>
<p><object class="video" width="640" height="400"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2538054&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2538054&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="400"></embed></object></p>
<p>In other news, <a title="Play Minotaur China Shop" href="http://blurst.com/minotaur-china-shop/play" target="_blank">Minotaur China Shop</a> has been released! Go give it a shot if you haven&#8217;t checked it out yet!</p>
]]></content:encoded>
			<wfw:commentRss>http://adammechtley.com/2008/12/new-video-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
