<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6315440133714731648</id><updated>2012-01-24T19:25:43.389-08:00</updated><title type='text'>Andrew Kin Fun Chan's Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://druie.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6315440133714731648/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://druie.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Andrew Chan</name><uri>http://www.blogger.com/profile/14960027425741543570</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6315440133714731648.post-447315653717653746</id><published>2012-01-24T19:16:00.000-08:00</published><updated>2012-01-24T19:25:43.397-08:00</updated><title type='text'>Joint Labeling Mel Script</title><content type='html'>&lt;div style="text-align: left;"&gt;// This script joint labels your selected left joints. The script is very easy to modify to label the right and center joints as well.&lt;/div&gt; &lt;p style="text-align: left;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;span&gt;// The script is name dependent. Currently my joints are named jntName_lf.&lt;/span&gt;&lt;/p&gt;&lt;div&gt; &lt;p style="text-align: left;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;span&gt;// It will strip out jnt and _lf from the name. If your joints are named differently feel free to modify it below in the Subsitute Command. &lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;// If you have any questions feel free to email me at AndrewChan1985@gmail.com, or leave a comment below. Cheers!&lt;/p&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;string $mySelJnts[] = `ls -sl`;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;for ($jnt in $mySelJnts)&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;{&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;span&gt;// center jnts use 0.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;span&gt;// left jnts use 1.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;span&gt;// right jnts use 2.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;  setAttr ($jnt + ".side") &lt;span&gt;1&lt;/span&gt;;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;span&gt;// currently sets the type to other.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;  setAttr ($jnt + ".type") &lt;span&gt;18&lt;/span&gt;;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;&lt;span&gt;// strips out the name of the joint so have matching label names  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;  string $jntNewName;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;  $jntNewName = `substitute "&lt;span&gt;jnt&lt;/span&gt;" $jnt ""`;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;  $jntNewName = `substitute "&lt;span&gt;_lf&lt;/span&gt;" $jntNewName ""`;  &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;  setAttr -type "string" ($jnt+".otherType") $jntNewName;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "&gt;}&lt;/p&gt;&lt;img src="http://1.bp.blogspot.com/-YUb9REeJlyM/Tx90SOzHzGI/AAAAAAAABo0/F9Zne_ZOvFw/s400/joint_labeling.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5701403509833321570" style="color: rgb(0, 0, 238); text-decoration: underline; display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 206px; height: 400px; " /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6315440133714731648-447315653717653746?l=druie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://druie.blogspot.com/feeds/447315653717653746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6315440133714731648&amp;postID=447315653717653746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6315440133714731648/posts/default/447315653717653746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6315440133714731648/posts/default/447315653717653746'/><link rel='alternate' type='text/html' href='http://druie.blogspot.com/2012/01/joint-labeling-mel-script.html' title='Joint Labeling Mel Script'/><author><name>Andrew Chan</name><uri>http://www.blogger.com/profile/14960027425741543570</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-YUb9REeJlyM/Tx90SOzHzGI/AAAAAAAABo0/F9Zne_ZOvFw/s72-c/joint_labeling.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
