<?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-28178947</id><updated>2011-07-07T20:58:17.818-07:00</updated><title type='text'>ggyyMEL</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ggyymel.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ggyymel.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Chiou</name><uri>http://www.blogger.com/profile/10822030009911112592</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>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-28178947.post-3121357920257113484</id><published>2008-01-15T14:51:00.000-08:00</published><updated>2008-01-17T17:40:02.626-08:00</updated><title type='text'>AnimTestVideo_VampireDialogue - Stage001</title><content type='html'>&lt;object width="400" height="333" class="BLOG_video_class" id="BLOG_video-91e02f382d90ab90" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v20.nonxt4.googlevideo.com/videoplayback?id%3D91e02f382d90ab90%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331362855%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D6413F9D5BDB1D0FEBDDECA800C6F6700C6303DBD.56790F0F0DF8BFB67F63F1C357A0F2890546D5B0%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D91e02f382d90ab90%26offsetms%3D5000%26itag%3Dw160%26sigh%3DEAVZ_qoIyrIFPzCdNzj0Qrib2Os&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="400" height="333" bgcolor="#FFFFFF"flashvars="flvurl=http://v20.nonxt4.googlevideo.com/videoplayback?id%3D91e02f382d90ab90%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331362855%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D6413F9D5BDB1D0FEBDDECA800C6F6700C6303DBD.56790F0F0DF8BFB67F63F1C357A0F2890546D5B0%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D91e02f382d90ab90%26offsetms%3D5000%26itag%3Dw160%26sigh%3DEAVZ_qoIyrIFPzCdNzj0Qrib2Os&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28178947-3121357920257113484?l=ggyymel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=2a0b3bbee9800955&amp;type=video%2Fmp4' length='0'/><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=3da08a8f12de8e63&amp;type=video%2Fmp4' length='0'/><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=73933e375068d70e&amp;type=video%2Fmp4' length='0'/><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=91e02f382d90ab90&amp;type=video%2Fmp4' length='0'/><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=9faf1e303bb1b63a&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://ggyymel.blogspot.com/feeds/3121357920257113484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28178947&amp;postID=3121357920257113484' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/3121357920257113484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/3121357920257113484'/><link rel='alternate' type='text/html' href='http://ggyymel.blogspot.com/2008/01/animtestvideovampiredialogue-stage001.html' title='AnimTestVideo_VampireDialogue - Stage001'/><author><name>Chiou</name><uri>http://www.blogger.com/profile/10822030009911112592</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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28178947.post-117036924130085790</id><published>2007-02-01T14:31:00.000-08:00</published><updated>2007-03-28T12:26:51.648-07:00</updated><title type='text'>Rig a paperbag</title><content type='html'>Step  01:&lt;br /&gt;create  joints and move to the position like the below picture  then do  the smooth skin&lt;br /&gt;use expression to adjust the joints and control locator&lt;br /&gt;a. CnLocator translateX, L and R joint Up and Dn rotate outward, the bottom joint also move up&lt;br /&gt;b. CnLocator translateX, Mid joint Up and Dn translate into center&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_kMe9jRVhO20/Rgq9x1clePI/AAAAAAAAAC8/RxRlpXgM220/s1600-h/bag_joints.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_kMe9jRVhO20/Rgq9x1clePI/AAAAAAAAAC8/RxRlpXgM220/s400/bag_joints.jpg" alt="" id="BLOGGER_PHOTO_ID_5047054996280277234" border="0" /&gt;&lt;/a&gt;Step 02:&lt;br /&gt;use component editor to change the vertex weight in the bottom to 1&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_kMe9jRVhO20/Rgq-aVcleQI/AAAAAAAAADE/NjL8FU0ZDZA/s1600-h/bag_VertexBottom.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_kMe9jRVhO20/Rgq-aVcleQI/AAAAAAAAADE/NjL8FU0ZDZA/s400/bag_VertexBottom.jpg" alt="" id="BLOGGER_PHOTO_ID_5047055692064979202" border="0" /&gt;&lt;/a&gt;Step 03:&lt;br /&gt;use component editor to change the vertex weight on the side&lt;br /&gt;from top column to the bottom column&lt;br /&gt;Mid_jointDn   Bottom_joint&lt;br /&gt;1                            0&lt;br /&gt;0.7                       0.3&lt;br /&gt;0.6                       0.4&lt;br /&gt;0.5                       0.5&lt;br /&gt;0.4                       0.6&lt;br /&gt;0.25                    0.75&lt;br /&gt;0.1                       0.9&lt;br /&gt;Do the adjustments depend on the demand&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_kMe9jRVhO20/Rgq-31cleRI/AAAAAAAAADM/xOrJ8yg51a0/s1600-h/bag_VertexSide.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_kMe9jRVhO20/Rgq-31cleRI/AAAAAAAAADM/xOrJ8yg51a0/s400/bag_VertexSide.jpg" alt="" id="BLOGGER_PHOTO_ID_5047056198871120146" border="0" /&gt;&lt;/a&gt;Step 04:&lt;br /&gt;Do the same thing on the vertex on the other side again&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sample:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_kMe9jRVhO20/Rgq2X1cleOI/AAAAAAAAAC0/TmwsZox4PL8/s1600-h/bag.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_kMe9jRVhO20/Rgq2X1cleOI/AAAAAAAAAC0/TmwsZox4PL8/s400/bag.jpg" alt="" id="BLOGGER_PHOTO_ID_5047046853022284002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.alphaelf.com/TTtemp/Videos/ver003_newer2_smaller.mov"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px;" src="http://www.alphaelf.com/TTtemp/Videos/ver003_newer2_smaller.mov" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28178947-117036924130085790?l=ggyymel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/117036924130085790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/117036924130085790'/><link rel='alternate' type='text/html' href='http://ggyymel.blogspot.com/2007/02/test.html' title='Rig a paperbag'/><author><name>Chiou</name><uri>http://www.blogger.com/profile/10822030009911112592</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://bp0.blogger.com/_kMe9jRVhO20/Rgq9x1clePI/AAAAAAAAAC8/RxRlpXgM220/s72-c/bag_joints.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-28178947.post-115388589095511099</id><published>2006-07-25T20:50:00.000-07:00</published><updated>2006-07-25T20:52:20.870-07:00</updated><title type='text'>Rigging_Attach the controller to splineFK (description only)</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4511/1059/1600/EasyCalv.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/4511/1059/320/EasyCalv.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The easiest way to put the calv controller I found is&lt;br /&gt;- put your calv controller to the shoulder joint then group the controller itself&lt;br /&gt;- change the pivot point of the group to the shoulder joint&lt;br /&gt;- calv joint orient constrain the group of calv controller&lt;br /&gt;- freeze the C_calv (so the rotate will be the same as calv joint)&lt;br /&gt;- delete the orient constrain&lt;br /&gt;- point constrain C_calv by shoulder joint (so the C_calv will follow theposition of Shoulder joint)&lt;br /&gt;- C_calv orient constrain the calv joint (so C_calv can orient the Calv joint)&lt;br /&gt;&lt;br /&gt;problem&lt;br /&gt;- no translate on that&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28178947-115388589095511099?l=ggyymel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ggyymel.blogspot.com/feeds/115388589095511099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28178947&amp;postID=115388589095511099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/115388589095511099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/115388589095511099'/><link rel='alternate' type='text/html' href='http://ggyymel.blogspot.com/2006/07/riggingattach-controller-to-splinefk_25.html' title='Rigging_Attach the controller to splineFK (description only)'/><author><name>Chiou</name><uri>http://www.blogger.com/profile/10822030009911112592</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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28178947.post-115388516094621902</id><published>2006-07-25T20:31:00.000-07:00</published><updated>2009-11-22T08:04:47.045-08:00</updated><title type='text'>Rigging_easy way to put Calv controler (description)</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4511/1059/1600/EasyCalv.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/4511/1059/320/EasyCalv.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The easiest way to put the calv controller I found is&lt;br /&gt;- put your calv controller to the shoulder joint then group the controller itself&lt;br /&gt;- center pivot the group&lt;br /&gt;- calv joint orient constrain the group of calv controller&lt;br /&gt;- freeze the C_calv (so the rotate will be the same as calv joint)&lt;br /&gt;- delete the orient constrain&lt;br /&gt;- point constrain C_calv by shoulder joint (so the C_calv will follow theposition of Shoulder joint)&lt;br /&gt;- C_calv orient constrain the calv joint (so C_calv can orient the Calv joint)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28178947-115388516094621902?l=ggyymel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ggyymel.blogspot.com/feeds/115388516094621902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28178947&amp;postID=115388516094621902' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/115388516094621902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/115388516094621902'/><link rel='alternate' type='text/html' href='http://ggyymel.blogspot.com/2006/07/riggingeasy-way-to-put-calv-controler.html' title='Rigging_easy way to put Calv controler (description)'/><author><name>Chiou</name><uri>http://www.blogger.com/profile/10822030009911112592</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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28178947.post-115376526868813318</id><published>2006-07-24T11:20:00.000-07:00</published><updated>2006-07-25T20:39:59.986-07:00</updated><title type='text'>Rigging_Attach the controller to splineFK (description only)</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4511/1059/1600/01.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/4511/1059/320/01.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4511/1059/1600/02.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/4511/1059/320/02.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4511/1059/1600/03.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/4511/1059/320/03.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4511/1059/1600/04.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/4511/1059/320/04.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28178947-115376526868813318?l=ggyymel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ggyymel.blogspot.com/feeds/115376526868813318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28178947&amp;postID=115376526868813318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/115376526868813318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/115376526868813318'/><link rel='alternate' type='text/html' href='http://ggyymel.blogspot.com/2006/07/riggingattach-controller-to-splinefk.html' title='Rigging_Attach the controller to splineFK (description only)'/><author><name>Chiou</name><uri>http://www.blogger.com/profile/10822030009911112592</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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28178947.post-114782274241255813</id><published>2006-05-16T16:20:00.000-07:00</published><updated>2006-05-16T16:39:02.433-07:00</updated><title type='text'>yeSnapSho 2.75</title><content type='html'>yeSnapSho 2.75 a tool to creat Pose liberary&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://photos1.blogger.com/blogger/3673/2988/1600/yeSnapShot.jpg"&gt;&lt;img style="CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/3673/2988/320/yeSnapShot.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;the Mel&lt;br /&gt;==================================================&lt;br /&gt;global proc tMel()&lt;br /&gt;{&lt;br /&gt;if (`window -query -exists yeGUIWindow`)&lt;br /&gt;{&lt;br /&gt;deleteUI yeGUIWindow;&lt;br /&gt;windowPref -remove yeGUIWindow;&lt;br /&gt;}&lt;br /&gt;//main window with menu&lt;br /&gt;window -menuBar 1 -menuBarVisible 1 -s 1 -t "yeTools" -rtf 1 yeGUIWindow;&lt;br /&gt;menu -label "File" ;&lt;br /&gt;menuItem -label "save all buttons" -command "yeSaveButton";&lt;br /&gt;menuItem -label "load buttons" -command "yeLoadButton";&lt;br /&gt;menuItem -divider true;&lt;br /&gt;menuItem -label "close Window" -command "yeClose";&lt;br /&gt;menu -label "button Size" ;&lt;br /&gt;menuItem -label "large" -c "goXL" ;&lt;br /&gt;menuItem -label "Small" -c "goXS";&lt;br /&gt;menu -label "Help";&lt;br /&gt;menuItem -label "there is no Help yet";&lt;br /&gt;menuItem -label "I am trying" -c "yeOpen";&lt;br /&gt;&lt;br /&gt;//Windows and buttons&lt;br /&gt;&lt;br /&gt;//columnLayout -adjustableColumn true;&lt;br /&gt;frameLayout -collapsable 1 -l "" yeFrame;&lt;br /&gt;columnLayout yeColumn;&lt;br /&gt;rowColumnLayout -numberOfColumns 2 -columnWidth 1 150 -columnWidth 2 350 yeRowColumn;&lt;br /&gt;&lt;br /&gt;textScrollList -selectCommand "yeSelectItem()"&lt;br /&gt;-deleteKeyCommand "yeDeleteIt()"&lt;br /&gt;-doubleClickCommand "yeGetAll"&lt;br /&gt;-manage yes&lt;br /&gt;-ams 1 -width 150 -height 300 selections;&lt;br /&gt;&lt;br /&gt;popupMenu -p selections -mm 1 -b 3 yePopTextMenu;&lt;br /&gt;menuItem -l "select all" -c "yeGetAll";&lt;br /&gt;menuItem -l "add to Maya shelf" -c "yeAddToShelf";&lt;br /&gt;menuItem -l "add selected" -c "yeAddIt";&lt;br /&gt;menuItem -l "delete" -c "yeDeleteIt";&lt;br /&gt;menuItem -l "Clean the List" -c "yeCleanIt";&lt;br /&gt;shelfTabLayout -image "smallTrash.xpm" -imageVisible 1 yeShelfTab;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;shelfLayout "selection" ;&lt;br /&gt;&lt;br /&gt;setParent..;&lt;br /&gt;&lt;br /&gt;shelfLayout "pose" ;&lt;br /&gt;setParent..;&lt;br /&gt;*/&lt;br /&gt;setParent..;&lt;br /&gt;setParent..;&lt;br /&gt;&lt;br /&gt;//&lt;br /&gt;frameLayout -width 500 -collapsable 1 -label "Functions";&lt;br /&gt;rowColumnLayout -numberOfColumns 3 -columnWidth 1 150 -columnWidth 2 150 -columnWidth 3 150;&lt;br /&gt;button -l "add selected" -w 150 -c "yeAddIt";&lt;br /&gt;// 1&lt;br /&gt;text -l "Name your selection group";&lt;br /&gt;// 2&lt;br /&gt;text -l "Name your pose";&lt;br /&gt;// 3&lt;br /&gt;button -l "delete" -c "yeDeleteIt";&lt;br /&gt;// 4&lt;br /&gt;textField groupName;&lt;br /&gt;// 5&lt;br /&gt;textField poseName;&lt;br /&gt;// 6&lt;br /&gt;button -l "Clean the List" -c "yeCleanIt";&lt;br /&gt;// 7&lt;br /&gt;button -bgc 99 99 02 -l"add selection " -c "yeSetSelection" ;&lt;br /&gt;// 8&lt;br /&gt;button -bgc 99 200 02 -l "add pose " -c "yeGetPose";&lt;br /&gt;// 9&lt;br /&gt;setParent..;&lt;br /&gt;setParent..;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;showWindow yeGUIWindow;&lt;br /&gt;&lt;br /&gt;//set to large button&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//Creat the shelf Folder in user shelf dir&lt;br /&gt;string $yeTheDir = (`internalVar -userShelfDir`);&lt;br /&gt;sysFile -makeDir ($yeTheDir + "yeShelfDir");&lt;br /&gt;&lt;br /&gt;yeShelfTabss;&lt;br /&gt;goXL;&lt;br /&gt;yeLoadButton;&lt;br /&gt;yePopupMenuAddOn;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;global proc yeClose()&lt;br /&gt;{&lt;br /&gt;string $result = `confirmDialog&lt;br /&gt;-title "closing window"&lt;br /&gt;-message "save buttons?"&lt;br /&gt;-button "Yes" -button "No" `;&lt;br /&gt;&lt;br /&gt;if ($result == "Yes")&lt;br /&gt;{&lt;br /&gt;yeSaveButton;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;deleteUI yeGUIWindow;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//large shelf Button&lt;br /&gt;global proc goXL()&lt;br /&gt;{&lt;br /&gt;global string $gShelfTopLevel;&lt;br /&gt;&lt;br /&gt;string $temp = $gShelfTopLevel;&lt;br /&gt;&lt;br /&gt;$gShelfTopLevel = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTab" ;&lt;br /&gt;&lt;br /&gt;setShelfStyle "iconOnly" "Large";&lt;br /&gt;//optionVar -sv shelfItemStyle "iconOnly";&lt;br /&gt;&lt;br /&gt;$gShelfTopLevel = $temp;&lt;br /&gt;&lt;br /&gt;print ("goXL==&gt;" + $gShelfTopLevel + "\n");&lt;br /&gt;&lt;br /&gt;yePopupMenuAddOn;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//Small Shelf Button&lt;br /&gt;global proc goXS()&lt;br /&gt;{&lt;br /&gt;global string $gShelfTopLevel;&lt;br /&gt;&lt;br /&gt;string $temp = $gShelfTopLevel;&lt;br /&gt;&lt;br /&gt;$gShelfTopLevel = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTab" ;&lt;br /&gt;&lt;br /&gt;setShelfStyle "iconOnly" "Small" ;&lt;br /&gt;optionVar -sv shelfItemStyle "iconOnly";&lt;br /&gt;&lt;br /&gt;$gShelfTopLevel = $temp;&lt;br /&gt;&lt;br /&gt;print ("goXS==&gt;" + $gShelfTopLevel + "\n");&lt;br /&gt;&lt;br /&gt;yePopupMenuAddOn;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//get selected items into textScorllList&lt;br /&gt;global proc yeAddIt()&lt;br /&gt;{&lt;br /&gt;string $obj[] =`ls -sl`;&lt;br /&gt;if ((size($obj)) == 0)&lt;br /&gt;{&lt;br /&gt;confirmDialog -t "ops!!!" -m "Please select an object..." -button "Ok...";&lt;br /&gt;//error "please select an object" ;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;for ($i=0;$i&lt;(size($obj));$i++) textScrollList -edit -append $obj[$i] selections; } } global proc yeSelectItem() { select -cl; string $curObjs[] = `textScrollList -q -si selections`; for ($item in $curObjs) { select -add $curObjs; } } global proc yeDeleteIt() { string $curObjs[] = `textScrollList -q -si selections`; for ($item in $curObjs) { //delete $item; textScrollList -e -ri $item selections; } } global proc yeSetSelection() { global string $gShelfTopLevel; global string $buttons[]; string $selObj[]; string $tabName = `textField -q -text groupName`; $selObj = `textScrollList -q -ai selections`; //check item in the scrollList if((size($selObj))==0) { confirmDialog -t "&lt;======check!!!" -m "Please make you selection list..." -button "Ok..."; return; //error "Please make your selection!!!"; } //check input of textfield if((size($tabName))==0) { confirmDialog -t "check!!!" -m "Please Name your Shelf Button..." -button "Ok..."; return; //error "Please Name your Shelf Button"; } //check is the naming is the same if (`shelfButton -exists ("yeSelButton_"+ $tabName)`) { confirmDialog -t "check!!!" -m "please give it another name..." -button "Ok..."; return; //error "please give it another name"; } else { //for each item in the list add to the $command string string $command=("//selection for: " + "yeSelButton_" +$tabName + "\n" + "select -cl ;\n"); for ($item in $selObj) { $command += ("select -add " + $item + ";\n" ); } //creat shelfButton shelfButton -label $tabName //-p ($gShelfTopLevel + "" + `tabLayout -q -selectTab $gShelfTopLevel`) -p ("yeGUIWindow" + "" +"yeFrame" + "" + "yeColumn" +"" + "yeRowColumn" +"" + "yeShelfTab" +""+ "selection") -imageOverlayLabel $tabName -image "commandButton.xpm" -command $command -vis yes //button name ("yeSelButton_"+ $tabName); print ("yeSelButton_" + $tabName); int $buttonNum = size($buttons); $buttons[$buttonNum] = ("yeSelButton_" + $tabName); //popupMenu -p ("yeSelButton_"+ $tabName); // menuItem -l "delete button" -c ("yeDeleButtom("+$buttonNum+")"); } string $thePage = `shelfTabLayout -q -st yeShelfTab`; if ($thePage != "selection") { confirmDialog -m "A button have been creat in \"selection\" page" -button "Ok..."; return; } yeSaveButton; yePopupMenuAddOn; } global proc yeDeleButtom(int $which) { global string $buttons[]; print ("Deleting item number: " + $which +"\n"); deleteUI -control $buttons[$which]; } global proc yeCleanIt() { textScrollList -edit -ra selections; } global proc yeGetPose() { string $poseName = `textField -q -text poseName`; string $thePage =`shelfTabLayout -q -st yeShelfTab`; //print $thePage; if ($thePage == "selection") { confirmDialog -t "check!!! Current page \"selection\"" -m " Please select a \"Pose\" Page... " -button "Ok..."; return; } if (size($poseName)==0) { confirmDialog -t "check!!!" -m "Please Name your Pose..." -button "Ok..."; return; //error "Please Name your Pose!!"; //Get selection } string $selected[] = `ls -sl`; if (size($selected) == 0) { confirmDialog -t "check!!!" -m "Nothing is selected..." -button "Ok..."; return; //error -sl on "Nothing is selected!!!"; } if (`shelfButton -exists ("yePoseButton_"+ $poseName)`) { confirmDialog -t "check!!!" -m "please give it another name..." -button "Ok..."; return; //error "please give it another name"; } string $command = ("//Pose: '" + $poseName + "'\n"); for ($item in $selected) { string $attrs[] = `listAttr -keyable $item`; for ($attr in $attrs) { float $value = `getAttr ($item + "." + $attr)`; $command += ("catch(`setAttr " + $item + "." + $attr + " " + $value + "`);\n"); //print $command; } } int $origImageFormat = `getAttr defaultRenderGlobals.imageFormat`; setAttr defaultRenderGlobals.imageFormat 20; string $iconsFolder = `internalVar -userBitmapsDir`; int $currentFrame = `currentTime -q`; string $editorName = `getPanel -withFocus`; string $origDisplayState = `modelEditor -q -stateString $editorName`; $origDisplayState = `substitute "$editorName*" $origDisplayState $editorName`; $origDisplayState = `substitute "$editorName*" $origDisplayState $editorName`; modelEditor -e -allObjects off $editorName; modelEditor -edit -nurbsSurfaces on -polymeshes on -subdivSurfaces on -grid off $editorName; //Take the snapshot playblast -showOrnaments off -frame $currentFrame -percent 100 -wh 64 64 -viewer off -format "image" -filename ($iconsFolder + " yePose_" + $poseName); eval $origDisplayState; setAttr defaultRenderGlobals.imageFormat $origImageFormat; //string $theTab =`tabLayout -q -selectTab yeShelfTab`; //print $theTab; //print(`shelfLayout -q -ca pose`); &lt;==get all the self button in the shelf shelfButton -label $poseName //-p ($gShelfTopLevel + "" + `tabLayout -q -selectTab $gShelfTopLevel`) -p ("yeGUIWindow" + "" +"yeFrame" + "" + "yeColumn" +"" + "yeRowColumn" +"" + "yeShelfTab" +""+ $thePage) -imageOverlayLabel $poseName -image (" yePose_" + $poseName + ".0000.bmp") -command $command -vis yes //button name ("yePoseButton_"+ $poseName); yeSaveButton; yePopupMenuAddOn; } global proc yeSaveButton() { string $yeTopShelf = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTab"; string $theDir = (`internalVar -userShelfDir`); string $allTab[] =(`shelfTabLayout -q -ca yeShelfTab`); //print $allTab; for ($i=0; $i&lt;(size($allTab)); $i++) { string $yeDirAll = ($theDir + "yeShelfDir" + "/shelf_" + $allTab[$i] ); //string $yeDirSelection = ($theDir + "yeShelfDir" + "/shelf_selection" ); //print ( "the dir=====&gt;" + $yeDirAll + "\n");&lt;br /&gt;string $yeAllShelf = ($yeTopShelf + $allTab[$i]);&lt;br /&gt;//print ( "whole line " + $yeAllShelf + "\n");&lt;br /&gt;&lt;br /&gt;saveShelf $yeAllShelf $yeDirAll;&lt;br /&gt;//saveShelf yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTabselection $yeDirSelection;&lt;br /&gt;}&lt;br /&gt;print "files saved";&lt;br /&gt;}&lt;br /&gt;global proc yeLoadButton()&lt;br /&gt;{&lt;br /&gt;global string $gShelfTopLevel;&lt;br /&gt;string $temp = $gShelfTopLevel;&lt;br /&gt;&lt;br /&gt;$gShelfTopLevel = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTab";&lt;br /&gt;&lt;br /&gt;string $theDir = (`internalVar -userShelfDir`);&lt;br /&gt;string $yeDirMain = ($theDir +"yeShelfDir/shelf_");&lt;br /&gt;&lt;br /&gt;string $allTab[] =(`shelfTabLayout -q -ca yeShelfTab`);&lt;br /&gt;&lt;br /&gt;for ($i=0; $i&lt;(size($allTab)); $i++) { $gShelfTopLevel = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTab"; $gShelfTopLevel = $gShelfTopLevel + $allTab[$i]; print ("$gShelfTopLevel===&gt;" + $gShelfTopLevel +"\n");&lt;br /&gt;&lt;br /&gt;string $yeDirAll = $yeDirMain + $allTab[$i] ;&lt;br /&gt;print ("dir===&gt;" + $yeDirAll + "\n") ;&lt;br /&gt;&lt;br /&gt;string $selTab = "source \"" + $yeDirAll + "\";";&lt;br /&gt;eval $selTab;&lt;br /&gt;setParent $gShelfTopLevel;&lt;br /&gt;&lt;br /&gt;string $shelfTab ="shelf_" + $allTab[$i];&lt;br /&gt;eval $shelfTab ;&lt;br /&gt;&lt;br /&gt;//string $yeDirPose = ($theDir + "yeShelfDir" + "/shelf_pose" );&lt;br /&gt;//string $yeDirSelection = ($theDir + "yeShelfDir" + "/shelf_selection" );&lt;br /&gt;&lt;br /&gt;//global string $gShelfTopLevel;&lt;br /&gt;&lt;br /&gt;//string $temp = $gShelfTopLevel;&lt;br /&gt;/*&lt;br /&gt;//$gShelfTopLevel = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTabselection";&lt;br /&gt;string $selSelection = "source \""+ $yeDirSelection+ "\";";&lt;br /&gt;eval $selSelection;&lt;br /&gt;setParent $gShelfTopLevel;&lt;br /&gt;eval shelf_selection;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$gShelfTopLevel = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTabpose";&lt;br /&gt;string $selPose = "source \""+ $yeDirPose+ "\";";&lt;br /&gt;eval $selPose;&lt;br /&gt;setParent $gShelfTopLevel;&lt;br /&gt;eval shelf_pose;&lt;br /&gt;*/&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$gShelfTopLevel = $temp;&lt;br /&gt;print ("old gshlef ===&gt;" + $gShelfTopLevel +"\n");&lt;br /&gt;yePopupMenuAddOn;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;global proc yePopupMenuAddOn()&lt;br /&gt;{&lt;br /&gt;//global string $gShelfTopLevel;&lt;br /&gt;string $yeTopShelf = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTab";&lt;br /&gt;//print $yeTopShelf;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if (`popupMenu -exists yePopupMenu`)&lt;br /&gt;deleteUI yePopupMenu;&lt;br /&gt;&lt;br /&gt;popupMenu -p $yeTopShelf -mm 1 -b 3 yePopupMenu;&lt;br /&gt;menuItem -l "Save all Buttons" -c "yeSaveButton";&lt;br /&gt;menuItem -l "Load Page Buttons" -c "yeLoadOne";&lt;br /&gt;menuItem -l "add New Pose Page" -c "yeAddShelf";&lt;br /&gt;menuItem -l "delete Page" -c "yeDelePage";&lt;br /&gt;&lt;br /&gt;string $shelfTabs[] = `tabLayout -q -ca $yeTopShelf`;&lt;br /&gt;for ($shelfTab in $shelfTabs)&lt;br /&gt;{&lt;br /&gt;string $shelfButtons[] = `shelfLayout -q -ca $shelfTab`;&lt;br /&gt;for ($shelfButton in $shelfButtons)&lt;br /&gt;{&lt;br /&gt;if (`popupMenu -exists ("yePopupMenu " + $shelfButton)`)&lt;br /&gt;deleteUI ("yePopupMenu " + $shelfButton);&lt;br /&gt;&lt;br /&gt;popupMenu -p $shelfButton -mm 1 -b 3 ("yePopupMenu " + $shelfButton);&lt;br /&gt;menuItem -l "Remane Button" -c ("yeRename " +$shelfButton);&lt;br /&gt;menuItem -l "Delete Button" -c ("newyeDeleButton " + $shelfButton);&lt;br /&gt;menuItem -l "Save all Buttons" -c "yeSaveButton";&lt;br /&gt;menuItem -l "Load Page Buttons" -c "yeLoadOne";&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;global proc newyeDeleButton (string $shelfButton)&lt;br /&gt;{&lt;br /&gt;string $yeTopShelf = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTab";&lt;br /&gt;string $shelfTab = `tabLayout -q -st $yeTopShelf`;&lt;br /&gt;//print ("TOP1=====" + $shelfTabs + "\n");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if ($shelfTab == "pose")&lt;br /&gt;{&lt;br /&gt;string $icoDir = `internalVar -userBitmapsDir`;&lt;br /&gt;//print $icoDir;&lt;br /&gt;&lt;br /&gt;string $icoName = (`shelfButton -q -iol $shelfButton`);&lt;br /&gt;print ("ICON=====&gt;" + $icoName + "\n");&lt;br /&gt;&lt;br /&gt;string $fileName = (" yePose_" + $icoName +".0000.bmp");&lt;br /&gt;$fileName = $icoDir + $fileName;&lt;br /&gt;//print $fileName;&lt;br /&gt;&lt;br /&gt;sysFile -delete $fileName;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;deleteUI $shelfButton;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;global proc yeRename(string $shelfButton)&lt;br /&gt;{&lt;br /&gt;string $oldName = `shelfButton -q -iol $shelfButton`;&lt;br /&gt;&lt;br /&gt;string $result =`promptDialog -t "Rename Button"&lt;br /&gt;-text $oldName&lt;br /&gt;-message "Enter the new Name"&lt;br /&gt;-button "Ok" -button "Cancel"&lt;br /&gt;-defaultButton "Ok" -cancelButton "Cancel"&lt;br /&gt;-dismissString "Cancel"`;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if ($result == "Ok")&lt;br /&gt;{&lt;br /&gt;print "oooooooooooooooOKKKKKKKKKKKKKKKKK";&lt;br /&gt;string $text = `promptDialog -query -text`;&lt;br /&gt;&lt;br /&gt;shelfButton -e -iol $text $shelfButton;&lt;br /&gt;print ("this is====&gt;" + $shelfButton +"\n");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//&lt;br /&gt;global proc yeShelfTabss()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;string $theFile =(`internalVar -userScriptDir` + "yeTabb.ye");&lt;br /&gt;int $fileID = `fopen $theFile "r"`;&lt;br /&gt;string $yeShelfs =(`fread $fileID $yeShelfs`);&lt;br /&gt;print ("$yeshelf=====&gt;" + $yeShelfs + "\n");&lt;br /&gt;&lt;br /&gt;string $yeTab[];&lt;br /&gt;&lt;br /&gt;$numTokens = tokenize ($yeShelfs, $yeTab);&lt;br /&gt;fclose $fileID;&lt;br /&gt;print $yeTab;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;for ($i=0; $i&lt;(size($yeTab)); $i++) { setParent yeShelfTab; shelfLayout $yeTab[$i]; } goXL; } global proc yeAddToShelf() { global string $gShelfTopLevel; global string $buttons[]; string $selObj[]; string $tabName = `textField -q -text groupName`; $selObj = `textScrollList -q -ai selections`; //check item in the scrollList if((size($selObj))==0) { confirmDialog -t "&lt;======check!!!" -m "Please make you selection list..." -button "Ok..."; return; //error "Please make your selection!!!"; } else { string $result =`promptDialog -t "shelf Button name" -message "enter the Name" -button "Ok" -button "Cancel" -defaultButton "Ok" -cancelButton "Cancel" -dismissString "Cancel"`; if ($result == "Ok") { string $text = `promptDialog -query -text`; //for each item in the list add to the $command string string $command=("//selection for: " + "yeToShelf_" +$text + "\n" + "select -cl ;\n"); for ($item in $selObj) { $command += ("select -add " + $item + ";\n" ); } //creat shelfButton shelfButton -label $tabName -p ($gShelfTopLevel + "" + `tabLayout -q -selectTab $gShelfTopLevel`) //-p ("yeGUIWindow" + "" +"yeFrame" + "" + "yeColumn" +"" + "yeRowColumn" +"" + "yeShelfTab" +""+ "selection") -imageOverlayLabel $text -image "commandButton.xpm" -command $command -vis yes //button name ("yeToShelf_"+ $text); } } } global proc yeGetAll() { string $allItem[] = ` textScrollList -q -ai selections`; for ($item in $allItem) { textScrollList -e -selectItem $item selections; } yeSelectItem; } global proc yeAddShelf() { setParent yeShelfTab; string $result =`promptDialog -t "New Page" -message "Page Name" -button "Ok" -button "Cancel" -defaultButton "Ok" -cancelButton "Cancel" -dismissString "Cancel"`; if ($result == "Ok") { string $text = `promptDialog -query -text`; shelfLayout $text; string $allTab[] =`shelfTabLayout -q -ca yeShelfTab`; //print $allTab; string $theFile =(`internalVar -userScriptDir` + "yeTabb.ye"); int $fileID = `fopen $theFile "w"`; //print ($theFile + "\n"); //print ($fileID + "\n"); string $yeShelfs; for ($i=0; $i&lt;(size($allTab)); $i++) { $yeShelfs += ($allTab[$i] + " "); } //print ("$yeShelfs====&gt;" + $yeShelfs +"\n");&lt;br /&gt;&lt;br /&gt;fprint $fileID $yeShelfs ;&lt;br /&gt;&lt;br /&gt;fclose $fileID;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;yeSaveButton;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;global proc yeLoadOne()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;string $thePage =`shelfTabLayout -q -st yeShelfTab`;&lt;br /&gt;&lt;br /&gt;global string $gShelfTopLevel;&lt;br /&gt;string $temp = $gShelfTopLevel;&lt;br /&gt;&lt;br /&gt;string $theDir = (`internalVar -userShelfDir`);&lt;br /&gt;string $yeDirMain = ($theDir +"yeShelfDir/shelf_");&lt;br /&gt;&lt;br /&gt;$gShelfTopLevel = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTab";&lt;br /&gt;$gShelfTopLevel = $gShelfTopLevel + $thePage;&lt;br /&gt;print ("$gShelfTopLevel===&gt;" + $gShelfTopLevel +"\n");&lt;br /&gt;&lt;br /&gt;string $yeDirAll = $yeDirMain + $thePage ;&lt;br /&gt;print ("dir===&gt;" + $yeDirAll + "\n") ;&lt;br /&gt;&lt;br /&gt;string $selTab = "source \"" + $yeDirAll + "\";";&lt;br /&gt;eval $selTab;&lt;br /&gt;setParent $gShelfTopLevel;&lt;br /&gt;&lt;br /&gt;string $shelfTab ="shelf_" + $thePage;&lt;br /&gt;eval $shelfTab ;&lt;br /&gt;&lt;br /&gt;$gShelfTopLevel = $temp;&lt;br /&gt;print ("LoadOne's $gShelfTopLevel===&gt;" +$gShelfTopLevel + "\n");&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;global proc yeDelePage()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;string $result = `confirmDialog&lt;br /&gt;&lt;br /&gt;-message "Are you sure you want to delete the page?"&lt;br /&gt;-button "Yes" -button "No" `;&lt;br /&gt;&lt;br /&gt;if ($result == "Yes")&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;string $thePage = `shelfTabLayout -q -st yeShelfTab`;&lt;br /&gt;string $yeShelfTopLevel = "yeGUIWindowyeFrameyeColumnyeRowColumnyeShelfTab";&lt;br /&gt;deleteUI -layout ($yeShelfTopLevel + "" + $thePage);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;string $fileName = (`internalVar -userBitmapsDir` + "yeShelfDir/" + "shelf_" + $thePage +".mel");&lt;br /&gt;print $fileName;&lt;br /&gt;sysFile -delete $fileName;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;string $allTab[] =`shelfTabLayout -q -ca yeShelfTab`;&lt;br /&gt;//print $allTab;&lt;br /&gt;&lt;br /&gt;string $theFile =(`internalVar -userScriptDir` + "yeTabb.ye");&lt;br /&gt;int $fileID = `fopen $theFile "w"`;&lt;br /&gt;//print ($theFile + "\n");&lt;br /&gt;//print ($fileID + "\n");&lt;br /&gt;string $yeShelfs;&lt;br /&gt;&lt;br /&gt;for ($i=0; $i&lt;(size($allTab)); $i++) { $yeShelfs += ($allTab[$i] + " "); } //print ("$yeShelfs====&gt;" + $yeShelfs +"\n");&lt;br /&gt;&lt;br /&gt;fprint $fileID $yeShelfs ;&lt;br /&gt;&lt;br /&gt;fclose $fileID;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28178947-114782274241255813?l=ggyymel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ggyymel.blogspot.com/feeds/114782274241255813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28178947&amp;postID=114782274241255813' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/114782274241255813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/114782274241255813'/><link rel='alternate' type='text/html' href='http://ggyymel.blogspot.com/2006/05/yesnapsho-275.html' title='yeSnapSho 2.75'/><author><name>gyeric</name><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28178947.post-114774600544420027</id><published>2006-05-15T19:19:00.000-07:00</published><updated>2006-05-18T00:52:13.273-07:00</updated><title type='text'>MEL for Render Cameras selection by Chiou</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4511/1059/1600/Mel_RC001.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/4511/1059/320/Mel_RC001.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;click "find ALL cameras"&lt;br /&gt;multiply select the cameras you want to work, add cameras&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4511/1059/1600/Mel_RC002.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/4511/1059/320/Mel_RC002.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;in the camera list, check the camera you want to render&lt;br /&gt;choose cpu amount,&lt;br /&gt;Begin to Render&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;TT's Render Cameras select tools vr.002 updated date:May-18-2006&lt;br /&gt;known bug:&lt;br /&gt;1.不能點2次以上的add camera, 得一次選完.&lt;br /&gt;Resolve method:&lt;br /&gt;暫時懶得改&lt;br /&gt;&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;global string $CamNameG[];&lt;br /&gt;&lt;br /&gt;global proc TT_RenderCamSel()&lt;br /&gt;{&lt;br /&gt;    if (`window -exists TT_RenderCamSel`)&lt;br /&gt;        {&lt;br /&gt;            deleteUI -window TT_RenderCamSel;&lt;br /&gt;        }   &lt;br /&gt;        window -title "TT_RenderCamSel"&lt;br /&gt;        -rtf 1&lt;br /&gt;        -mxb 0&lt;br /&gt;        -sizeable 1&lt;br /&gt;        TT_RenderCamSel&lt;br /&gt;        ;&lt;br /&gt;    columnLayout;&lt;br /&gt;   &lt;br /&gt;    string $TTform =`formLayout myform`;&lt;br /&gt;        string $textCam =`text -l "Select the Cameras :" textListCam`;&lt;br /&gt;        string $SelCam = `textScrollList -width 250 -height 200 -ams 1 ScrolCam`;&lt;br /&gt;        string $SelButton = `button -l "Find ALL Cameras" -c "FindCam()" FindCamButton`;&lt;br /&gt;        string $AddButton = `button -l "Add Cameras" -c "AddCam()" AddCamButton`;&lt;br /&gt;               &lt;br /&gt;    formLayout -e&lt;br /&gt;            -af $textCam "top" 4&lt;br /&gt;            -af $textCam "left" 4&lt;br /&gt;            -ap $textCam "right"0 50&lt;br /&gt;           &lt;br /&gt;            -af $SelCam "left" 4&lt;br /&gt;            -ac $SelCam "top" 4 $textCam&lt;br /&gt;            -ap $SelCam "right" 0 50&lt;br /&gt;           &lt;br /&gt;            -af $SelButton "left" 4&lt;br /&gt;            -ac $SelButton "top" 4 $SelCam&lt;br /&gt;            -ap $SelButton "right" 0 50&lt;br /&gt;           &lt;br /&gt;            -af $AddButton "left" 4&lt;br /&gt;            -ac $AddButton "top" 4 $SelButton&lt;br /&gt;            -ap $AddButton "right" 0 50&lt;br /&gt;           &lt;br /&gt;            $TTform;&lt;br /&gt;     showWindow;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;global proc FindCam()&lt;br /&gt;{&lt;br /&gt;    //Find all cameras in Outlinear and list them to the scrolllist&lt;br /&gt;    string $Sel[]=`listCameras`;&lt;br /&gt;    textScrollList -e -ra ScrolCam;&lt;br /&gt;    for ($item in $Sel)&lt;br /&gt;    {&lt;br /&gt;    textScrollList -e -append $item ScrolCam;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;global proc AddCam()&lt;br /&gt;{&lt;br /&gt;    global string $CamNameG[];&lt;br /&gt;    string $Sel[]=`textScrollList -q -si ScrolCam`;&lt;br /&gt;    string $itemToform[];&lt;br /&gt;    string $CamName[];&lt;br /&gt;    text -l "Camera List :" CamList;&lt;br /&gt;    formLayout -e&lt;br /&gt;            -af CamList "top" 4&lt;br /&gt;            -ac CamList "left" 10 textListCam&lt;br /&gt;            myform;&lt;br /&gt;   &lt;br /&gt;    for($j=0; $j&lt;(size($Sel)); $j++)&lt;br /&gt;    {&lt;br /&gt;        //$CamName[$j] = $Sel[$j]+("_Cam");&lt;br /&gt;        $CamName[$j] = $Sel[$j];&lt;br /&gt;        checkBox -l $CamName[$j] $CamName[$j];&lt;br /&gt;        if ($j==0)&lt;br /&gt;        {&lt;br /&gt;        formLayout -e&lt;br /&gt;            -ac $CamName[$j] "top" 4 CamList&lt;br /&gt;            -ac $CamName[$j] "left" 10 textListCam&lt;br /&gt;            myform;&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;        formLayout -e&lt;br /&gt;            -ac $CamName[$j] "top" 2 $CamName[($j-1)]&lt;br /&gt;            -ac $CamName[$j] "left" 10 textListCam&lt;br /&gt;            myform;&lt;br /&gt;        }&lt;br /&gt;    }   &lt;br /&gt;   &lt;br /&gt;    for ($item in $CamName)&lt;br /&gt;    {&lt;br /&gt;    $CamNameG=$CamName;&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;    text -l "Cpu numbers for Rendering" tCPU;&lt;br /&gt;    intSliderGrp&lt;br /&gt;        -field true&lt;br /&gt;         -minValue 1 -maxValue 2&lt;br /&gt;         -fieldMinValue 1 -fieldMaxValue 2&lt;br /&gt;         -value 1&lt;br /&gt;        SelCpu;&lt;br /&gt;       &lt;br /&gt;    button -l "Begin to Render" -c "RenderIt()" ButtonR;&lt;br /&gt;&lt;br /&gt;    formLayout -e&lt;br /&gt;            -af tCPU "left" 4&lt;br /&gt;            -ac tCPU "top" 4 AddCamButton&lt;br /&gt;            -ap tCPU "right" 0 50&lt;br /&gt;           &lt;br /&gt;            -af SelCpu "left" 4&lt;br /&gt;            -ac SelCpu "top" 4 tCPU&lt;br /&gt;            -ap SelCpu "right" 0 50&lt;br /&gt;           &lt;br /&gt;            -af ButtonR "left" 4&lt;br /&gt;            -ac ButtonR "top" 4 SelCpu&lt;br /&gt;            -ap ButtonR "right" 0 50&lt;br /&gt;            myform;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;global proc RenderIt()&lt;br /&gt;{&lt;br /&gt;    global string $CamNameG[];&lt;br /&gt;    //print $CamNameG;&lt;br /&gt;    int $CheckC;&lt;br /&gt;    string $buffer[];&lt;br /&gt;    int $temp[];&lt;br /&gt;   &lt;br /&gt;    for($i=0; $i&lt;(size($CamNameG)); $i++)&lt;br /&gt;    {&lt;br /&gt;        $CheckC = `checkBox -q -v $CamNameG[$i]`;&lt;br /&gt;        if ($CheckC ==1)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            //$temp[$i] = `tokenize $CamNameG[$i] "_Cam" $buffer`;&lt;br /&gt;&lt;br /&gt;            //string $shapesTemp[] = `listRelatives -shapes $buffer[0]`;&lt;br /&gt;            string $shapesTemp[] = `listRelatives -shapes $CamNameG[$i]`;&lt;br /&gt;            string $ShapeName= $shapesTemp[0]+".renderable";&lt;br /&gt;           &lt;br /&gt;            //print $ShapeName;&lt;br /&gt;            setAttr $ShapeName 1;&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            //$temp[$i] = `tokenize $CamNameG[$i] "_" $buffer`;&lt;br /&gt;            //string $shapesTemp[] = `listRelatives -shapes $buffer[0]`;&lt;br /&gt;            string $shapesTemp[] = `listRelatives -shapes $CamNameG[$i]`;&lt;br /&gt;           &lt;br /&gt;            string $ShapeName= $shapesTemp[0]+".renderable";&lt;br /&gt;            setAttr $ShapeName 0;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;        string $CPUnum = `intSliderGrp -q -v SelCpu`;&lt;br /&gt;        print $CPUnum;&lt;br /&gt;        if ($CPUnum == 1)&lt;br /&gt;            {&lt;br /&gt;            batchRender -n 1;&lt;br /&gt;            BatchRender;&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;            {&lt;br /&gt;            batchRender -n 0;&lt;br /&gt;            BatchRender;&lt;br /&gt;            }   &lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28178947-114774600544420027?l=ggyymel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ggyymel.blogspot.com/feeds/114774600544420027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28178947&amp;postID=114774600544420027' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/114774600544420027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28178947/posts/default/114774600544420027'/><link rel='alternate' type='text/html' href='http://ggyymel.blogspot.com/2006/05/mel-for-render-cameras-selection-by.html' title='MEL for Render Cameras selection by Chiou'/><author><name>Chiou</name><uri>http://www.blogger.com/profile/10822030009911112592</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><thr:total>0</thr:total></entry></feed>
