<?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>MEL脚本 归档 - 喵喵动画屋</title>
	<atom:link href="https://www.miaodonghua.com/tag/mel%E8%84%9A%E6%9C%AC/feed" rel="self" type="application/rss+xml" />
	<link>https://www.miaodonghua.com/tag/mel脚本</link>
	<description>探索Maya世界：基础教程、动画技巧、建模艺术与渲染技术。</description>
	<lastBuildDate>Sat, 13 Jan 2024 19:12:49 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.miaodonghua.com/wp-content/uploads/2020/11/cropped-shuqian_logo.webp</url>
	<title>MEL脚本 归档 - 喵喵动画屋</title>
	<link>https://www.miaodonghua.com/tag/mel脚本</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Maya脚本：平移旋转自动归零</title>
		<link>https://www.miaodonghua.com/2117.html</link>
					<comments>https://www.miaodonghua.com/2117.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Sat, 15 Jan 2022 17:32:43 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<category><![CDATA[maya script]]></category>
		<category><![CDATA[Maya教程]]></category>
		<category><![CDATA[MEL脚本]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=2117</guid>

					<description><![CDATA[<p><a href="https://www.miaodonghua.com/2117.html">Maya脚本：平移旋转自动归零</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<pre class="wp-block-code"><code>//by 喵喵动画屋  旋转归零

string $lanzi&#91;] = `ls -sl`;
int $shuliang = size($lanzi);
print($shuliang+"\n");

for($i=0;$i&lt;$shuliang;$i++)
{
    print($lanzi&#91;$i]+"\n");
    
   int $rotate_ret = `getAttr -se ($lanzi&#91;$i]+".rotateX")`; 
   if($rotate_ret==1)
   {
        setAttr ($lanzi&#91;$i]+".rotateX") 0;  
   }
   
   $rotate_ret = `getAttr -se ($lanzi&#91;$i]+".rotateY")`; 
   if($rotate_ret==1)
   {
        setAttr ($lanzi&#91;$i]+".rotateY") 0;  
   }
   
   $rotate_ret = `getAttr -se ($lanzi&#91;$i]+".rotateZ")`; 
   if($rotate_ret==1)
   {
        setAttr ($lanzi&#91;$i]+".rotateZ") 0;  

   }
   
   

     print($rotate_ret+"\n"); 

}


//by 喵喵动画屋  平移归零

string $lanzi&#91;] = `ls -sl`;
int $shuliang = size($lanzi);
print($shuliang+"\n");

for($i=0;$i&lt;$shuliang;$i++)
{
    print($lanzi&#91;$i]+"\n");
    
   int $translate_ret = `getAttr -se ($lanzi&#91;$i]+".translateX")`; 
   if($translate_ret==1)
   {
        setAttr ($lanzi&#91;$i]+".translateX") 0;  
   }
   
   $translate_ret = `getAttr -se ($lanzi&#91;$i]+".translateY")`; 
   if($translate_ret==1)
   {
        setAttr ($lanzi&#91;$i]+".translateY") 0;  
   }
   
   $translate_ret = `getAttr -se ($lanzi&#91;$i]+".translateZ")`; 
   if($translate_ret==1)
   {
        setAttr ($lanzi&#91;$i]+".translateZ") 0;  

   }
   
   

     print($translate_ret+"\n"); 

}</code></pre>
</div></div>
<p><a href="https://www.miaodonghua.com/2117.html">Maya脚本：平移旋转自动归零</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/2117.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maya脚本：在指定帧的位置开始执行命令</title>
		<link>https://www.miaodonghua.com/1983.html</link>
					<comments>https://www.miaodonghua.com/1983.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Fri, 26 Nov 2021 17:55:46 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<category><![CDATA[maya script]]></category>
		<category><![CDATA[Maya教学]]></category>
		<category><![CDATA[mel]]></category>
		<category><![CDATA[MEL脚本]]></category>
		<category><![CDATA[编程]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=1983</guid>

					<description><![CDATA[<p>本次案例讲解：在指定帧位置，开始执行命令的表达式。 表达式原理：利用if表达式进行判断执行相应的命令。 if( &#8230; </p>
<p class="link-more"><a href="https://www.miaodonghua.com/1983.html" class="more-link">继续阅读<span class="screen-reader-text">“Maya脚本：在指定帧的位置开始执行命令”</span></a></p>
<p><a href="https://www.miaodonghua.com/1983.html">Maya脚本：在指定帧的位置开始执行命令</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p><br></p>



<h4 class="wp-block-heading"><strong>本次案例讲解：在指定帧位置，开始执行命令的表达式。</strong></h4>



<ul class="wp-block-list"><li><strong>表达式原理：</strong>利用if表达式进行判断执行相应的命令。</li></ul>



<p class="has-vivid-green-cyan-color has-black-background-color has-text-color has-background">if(frame==0)<br>{<br><br>pCube1.translateY =-0.1;<br><br>}<br><br>else<br><br>{<br><br>pCube1.translateY =0.1;<br><br>}</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Maya脚本教程：如何在特定帧开始执行命令？" width="525" height="295" src="https://www.youtube.com/embed/Qi7DvvU6y_g?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
<p><a href="https://www.miaodonghua.com/1983.html">Maya脚本：在指定帧的位置开始执行命令</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/1983.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maya脚本：跟随时间变化的表达式</title>
		<link>https://www.miaodonghua.com/1980.html</link>
					<comments>https://www.miaodonghua.com/1980.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Fri, 26 Nov 2021 17:48:11 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<category><![CDATA[maya script]]></category>
		<category><![CDATA[Maya教学]]></category>
		<category><![CDATA[mel]]></category>
		<category><![CDATA[MEL脚本]]></category>
		<category><![CDATA[编程]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=1980</guid>

					<description><![CDATA[<p>本次视频讲解：跟随时间变化的表达式=time。 表达式原理：让复杂运动更具规律性。</p>
<p><a href="https://www.miaodonghua.com/1980.html">Maya脚本：跟随时间变化的表达式</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<h4 class="wp-block-heading"><strong>本次视频讲解：跟随时间变化的表达式=time。</strong></h4>



<ul class="wp-block-list"><li><strong>表达式原理：</strong>让复杂运动更具规律性。</li></ul>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Maya粒子动画教程：时间驱动粒子运动的实现方法" width="525" height="295" src="https://www.youtube.com/embed/f74ONQSIDk4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
<p><a href="https://www.miaodonghua.com/1980.html">Maya脚本：跟随时间变化的表达式</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/1980.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maya脚本：循环执行命令</title>
		<link>https://www.miaodonghua.com/1976.html</link>
					<comments>https://www.miaodonghua.com/1976.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Fri, 26 Nov 2021 17:42:50 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<category><![CDATA[Maya教程]]></category>
		<category><![CDATA[mel]]></category>
		<category><![CDATA[MEL脚本]]></category>
		<category><![CDATA[循环]]></category>
		<category><![CDATA[编程]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=1976</guid>

					<description><![CDATA[<p>本次视频讲解：循环执行命令的脚本。 脚本作用：批量执行的必要条件之一。 for ($i=初始值;$i&#60;= &#8230; </p>
<p class="link-more"><a href="https://www.miaodonghua.com/1976.html" class="more-link">继续阅读<span class="screen-reader-text">“Maya脚本：循环执行命令”</span></a></p>
<p><a href="https://www.miaodonghua.com/1976.html">Maya脚本：循环执行命令</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<h4 class="wp-block-heading"><strong>本次视频讲解：循环执行命令的脚本。</strong></h4>



<ul class="wp-block-list"><li><strong>脚本作用：</strong>批量执行的必要条件之一。</li></ul>



<p class="has-vivid-green-cyan-color has-black-background-color has-text-color has-background">for ($i=初始值;$i&lt;=结束值;$i+=循环步调)<br>{<br><br>print ($i+&#8221;,&#8221;);<br><br>//所执行命令<br><br>}</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="maya 脚本：如何循环执行命令？" width="525" height="295" src="https://www.youtube.com/embed/YZanmJReY_c?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
<p><a href="https://www.miaodonghua.com/1976.html">Maya脚本：循环执行命令</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/1976.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maya脚本：获取选定对象的名称和完整属性名</title>
		<link>https://www.miaodonghua.com/1973.html</link>
					<comments>https://www.miaodonghua.com/1973.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Fri, 26 Nov 2021 17:37:59 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<category><![CDATA[Maya教学]]></category>
		<category><![CDATA[maya脚本]]></category>
		<category><![CDATA[mel]]></category>
		<category><![CDATA[MEL脚本]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=1973</guid>

					<description><![CDATA[<p>本次视频讲解：Mel获取选定对象的名称和完整属性名的方法。 脚本作用：可对单个选定对象执行命令。 //获取属性 &#8230; </p>
<p class="link-more"><a href="https://www.miaodonghua.com/1973.html" class="more-link">继续阅读<span class="screen-reader-text">“Maya脚本：获取选定对象的名称和完整属性名”</span></a></p>
<p><a href="https://www.miaodonghua.com/1973.html">Maya脚本：获取选定对象的名称和完整属性名</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<h4 class="wp-block-heading">本次视频讲解：Mel获取选定对象的名称和完整属性名的方法。</h4>



<ul class="wp-block-list"><li><strong>脚本作用：</strong>可对单个选定对象执行命令。</li></ul>



<p class="has-vivid-green-cyan-color has-black-background-color has-text-color has-background">//获取属性名称<br>string $sel[] = `ls -sl`;<br>float $cc=getAttr($sel[0]+&#8221;.translateY&#8221;);<br>print $cc;<br><br>//代入增减值计算<br>$cc = $cc + 增减值;<br>print $cc;<br>setAttr($sel[0]+&#8221;.translateY&#8221;) $cc;</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="maya 脚本：如何获取单个对象的名称和完整属性名？" width="525" height="295" src="https://www.youtube.com/embed/vY03NBXJoAo?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
<p><a href="https://www.miaodonghua.com/1973.html">Maya脚本：获取选定对象的名称和完整属性名</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/1973.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maya脚本：给对象属性递增或递减一个固定值</title>
		<link>https://www.miaodonghua.com/1969.html</link>
					<comments>https://www.miaodonghua.com/1969.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Fri, 26 Nov 2021 17:29:31 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<category><![CDATA[Maya教学]]></category>
		<category><![CDATA[maya脚本]]></category>
		<category><![CDATA[mel]]></category>
		<category><![CDATA[MEL脚本]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=1969</guid>

					<description><![CDATA[<p>本次案例：增减属性值的脚本。 脚本原理：累加和递减计算。 float $cc=getAttr(&#8220;增 &#8230; </p>
<p class="link-more"><a href="https://www.miaodonghua.com/1969.html" class="more-link">继续阅读<span class="screen-reader-text">“Maya脚本：给对象属性递增或递减一个固定值”</span></a></p>
<p><a href="https://www.miaodonghua.com/1969.html">Maya脚本：给对象属性递增或递减一个固定值</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<h4 class="wp-block-heading"><strong>本次案例：增减属性值的脚本。</strong></h4>



<ul class="wp-block-list"><li><strong>脚本原理：</strong>累加和递减计算。</li></ul>



<p class="has-vivid-green-cyan-color has-black-background-color has-text-color has-background">float $cc=getAttr(&#8220;增减属性&#8221;);<br><br>$cc=$cc + 增减值;<br><br>setAttr &#8220;增减属性&#8221; $cc;</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="maya 脚本：如何给对象属性递增或递减一个固定值？（精确控制控属性值脚本）" width="525" height="295" src="https://www.youtube.com/embed/R9faKcfnAKs?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
<p><a href="https://www.miaodonghua.com/1969.html">Maya脚本：给对象属性递增或递减一个固定值</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/1969.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maya脚本：动画自动上下振动</title>
		<link>https://www.miaodonghua.com/1950.html</link>
					<comments>https://www.miaodonghua.com/1950.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Wed, 24 Nov 2021 18:33:48 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<category><![CDATA[Maya教学]]></category>
		<category><![CDATA[maya脚本]]></category>
		<category><![CDATA[mel]]></category>
		<category><![CDATA[MEL脚本]]></category>
		<category><![CDATA[动画]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=1950</guid>

					<description><![CDATA[<p>本次案例：上下振动的动画表达式。 表达式原理：奇偶数判断，通过setAttr设置属性。 if(frame%2= &#8230; </p>
<p class="link-more"><a href="https://www.miaodonghua.com/1950.html" class="more-link">继续阅读<span class="screen-reader-text">“Maya脚本：动画自动上下振动”</span></a></p>
<p><a href="https://www.miaodonghua.com/1950.html">Maya脚本：动画自动上下振动</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<h4 class="wp-block-heading"><strong>本次案例：上下振动的动画表达式。</strong></h4>



<ul class="wp-block-list"><li><strong>表达式原理：</strong>奇偶数判断，通过setAttr设置属性。</li></ul>



<p class="has-vivid-green-cyan-color has-black-background-color has-text-color has-background has-regular-font-size">if(frame%2==0)<br>{<br><br>振动属性 = 参数一;<br><br>}<br><br>else<br><br>{<br><br>振动属性 = 参数二;<br><br>}</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="maya 脚本：如何制作上下振动的动画效果？（奇偶数判断表达式）" width="525" height="295" src="https://www.youtube.com/embed/aQQvoGuw7rM?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
<p><a href="https://www.miaodonghua.com/1950.html">Maya脚本：动画自动上下振动</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/1950.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maya脚本：轮子自动跟随位移精确旋转</title>
		<link>https://www.miaodonghua.com/1943.html</link>
					<comments>https://www.miaodonghua.com/1943.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Wed, 24 Nov 2021 18:16:29 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<category><![CDATA[Maya教学]]></category>
		<category><![CDATA[maya脚本]]></category>
		<category><![CDATA[mel]]></category>
		<category><![CDATA[MEL脚本]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=1943</guid>

					<description><![CDATA[<p>本次案例：轮子跟随位移精确旋转。 表达式原理：让表达式，计算出【前一帧和当前帧】的位移差。计算出位移差之后，我 &#8230; </p>
<p class="link-more"><a href="https://www.miaodonghua.com/1943.html" class="more-link">继续阅读<span class="screen-reader-text">“Maya脚本：轮子自动跟随位移精确旋转”</span></a></p>
<p><a href="https://www.miaodonghua.com/1943.html">Maya脚本：轮子自动跟随位移精确旋转</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<h4 class="wp-block-heading"><strong>本次案例：轮子跟随位移精确旋转。</strong></h4>



<ul class="wp-block-list"><li><strong>表达式原理：</strong>让表达式，计算出【前一帧和当前帧】的位移差。计算出位移差之后，我们用【位移差/周长】得到一个百分比，然后我们再用百分比*360度，就得出了每帧旋转的角度。最后我采用一个累加的方式，将累加的值传递到旋转属性值上。</li></ul>



<p class="has-vivid-green-cyan-color has-black-background-color has-text-color has-background has-regular-font-size">float $last = `getAttr -time (frame-1) 位移属性`;<br>float $now= `getAttr -time (frame-0) 位移属性`;<br>float $chazhi = $now &#8211; $last;<br>float $baifenbi = $chazhi/(3.14*直径);<br>float $jiaodu = $baifenbi*360;<br>float $default_jiaodu=旋转属性 + $jiaodu;<br>setAttr &#8220;旋转属性&#8221; $default_jiaodu;</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="Maya脚本教程：实现精准轮子位移跟随自动旋转！" width="525" height="295" src="https://www.youtube.com/embed/izS4cM51cII?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
<p><a href="https://www.miaodonghua.com/1943.html">Maya脚本：轮子自动跟随位移精确旋转</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/1943.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maya脚本：Mery睁眼+握拳脚本使用方法</title>
		<link>https://www.miaodonghua.com/1785.html</link>
					<comments>https://www.miaodonghua.com/1785.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Sun, 18 Apr 2021 19:56:10 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<category><![CDATA[Maya教学]]></category>
		<category><![CDATA[MEL脚本]]></category>
		<category><![CDATA[MERY]]></category>
		<category><![CDATA[Script editor]]></category>
		<category><![CDATA[工具架]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[脚本编辑器]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=1785</guid>

					<description><![CDATA[<p>最近老是有小伙伴问我“握拳”手势用的是什么插件，其实这只是一个简单的mel脚本，这里我就连同“睁眼”一起放出来 &#8230; </p>
<p class="link-more"><a href="https://www.miaodonghua.com/1785.html" class="more-link">继续阅读<span class="screen-reader-text">“Maya脚本：Mery睁眼+握拳脚本使用方法”</span></a></p>
<p><a href="https://www.miaodonghua.com/1785.html">Maya脚本：Mery睁眼+握拳脚本使用方法</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>最近老是有小伙伴问我“握拳”手势用的是什么插件，其实这只是一个简单的mel脚本，这里我就连同“睁眼”一起放出来，<strong><span class="has-inline-color has-vivid-red-color">操作方法：打开脚本编辑器&gt;&gt;粘贴MEL&gt;&gt;全选MEL&gt;&gt;点击三角符号运行。</span>除此之外也可以将MEL脚本直接拖到工具架上运行</strong>。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img decoding="async" src="https://i.loli.net/2021/04/19/ZuzNPqAlyjXfkWb.gif" alt="" style="width:840px;height:auto"/></figure>
</div>


<pre class="wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background has-link-color wp-elements-9dbebc867b026659d5b5ae08d9387dd0"><code><code>//睁眼
setAttr "Mery_ac_rg_supfLid_move_sg.translateY" 0.65;
setAttr "Mery_ac_lf_supfLid_move_sg.translateY" 0.65;</code></code></pre>



<pre class="wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background has-link-color wp-elements-1be85e5a94297628c13b455ee7bf4074"><code><code>//握拳
setAttr "Mery_ac_lf_ring02.rotateX" 0.827389;
setAttr "Mery_ac_lf_thumb01.rotateX" 28.302883;
setAttr "Mery_ac_lf_index03.rotateX" 3.30324;
setAttr "Mery_ac_lf_index02.rotateX" 0.373954;
setAttr "Mery_ac_lf_index01.rotateX" -13.880063;
setAttr "Mery_ac_lf_index_base.rotateX" 0;
setAttr "Mery_ac_lf_thumb03.rotateX" -6.725448;
setAttr "Mery_ac_lf_thumb02.rotateX" -10.301769;
setAttr "Mery_ac_lf_ring01.rotateX" 3.487558;
setAttr "Mery_ac_lf_ring_base.rotateX" 0;
setAttr "Mery_ac_lf_pinky03.rotateX" -2.291831;
setAttr "Mery_ac_lf_pinky02.rotateX" 0.691009;
setAttr "Mery_ac_lf_pinky01.rotateX" 4.557372;
setAttr "Mery_ac_lf_pinky_base.rotateX" 0;
setAttr "Mery_ac_lf_middle03.rotateX" -2.291831;
setAttr "Mery_ac_lf_middle02.rotateX" 0.293705;
setAttr "Mery_ac_lf_middle01.rotateX" -1.216076;
setAttr "Mery_ac_lf_middle_base.rotateX" 0;
setAttr "Mery_ac_lf_ring03.rotateX" -2.291831;
setAttr "Mery_ac_lf_ring02.rotateY" -3.133414;
setAttr "Mery_ac_lf_thumb01.rotateY" -4.043442;
setAttr "Mery_ac_lf_index03.rotateY" 0.399745;
setAttr "Mery_ac_lf_index02.rotateY" -3.219081;
setAttr "Mery_ac_lf_index01.rotateY" -7.40807;
setAttr "Mery_ac_lf_index_base.rotateY" 0;
setAttr "Mery_ac_lf_thumb03.rotateY" 5.749484;
setAttr "Mery_ac_lf_thumb02.rotateY" 10.317666;
setAttr "Mery_ac_lf_ring01.rotateY" -3.855357;
setAttr "Mery_ac_lf_ring_base.rotateY" 0;
setAttr "Mery_ac_lf_pinky03.rotateY" -2.291831;
setAttr "Mery_ac_lf_pinky02.rotateY" -3.166255;
setAttr "Mery_ac_lf_pinky01.rotateY" -14.830043;
setAttr "Mery_ac_lf_pinky_base.rotateY" 0;
setAttr "Mery_ac_lf_middle03.rotateY" -2.291831;
setAttr "Mery_ac_lf_middle02.rotateY" -3.227384;
setAttr "Mery_ac_lf_middle01.rotateY" -6.141131;
setAttr "Mery_ac_lf_middle_base.rotateY" 0;
setAttr "Mery_ac_lf_ring03.rotateY" -2.291831;
setAttr "Mery_ac_lf_ring02.rotateZ" -102.114342;
setAttr "Mery_ac_lf_thumb01.rotateZ" -8.354095;
setAttr "Mery_ac_lf_index03.rotateZ" -70.73108;
setAttr "Mery_ac_lf_index02.rotateZ" -83.944531;
setAttr "Mery_ac_lf_index01.rotateZ" -75.51321;
setAttr "Mery_ac_lf_index_base.rotateZ" 0;
setAttr "Mery_ac_lf_thumb03.rotateZ" -43.610245;
setAttr "Mery_ac_lf_thumb02.rotateZ" -17.469513;
setAttr "Mery_ac_lf_ring01.rotateZ" -89.515243;
setAttr "Mery_ac_lf_ring_base.rotateZ" 0;
setAttr "Mery_ac_lf_pinky03.rotateZ" -42.291831;
setAttr "Mery_ac_lf_pinky02.rotateZ" -89.632704;
setAttr "Mery_ac_lf_pinky01.rotateZ" -93.331885;
setAttr "Mery_ac_lf_pinky_base.rotateZ" 0;
setAttr "Mery_ac_lf_middle03.rotateZ" -42.291831;
setAttr "Mery_ac_lf_middle02.rotateZ" -102.517377;
setAttr "Mery_ac_lf_middle01.rotateZ" -86.476423;
setAttr "Mery_ac_lf_middle_base.rotateZ" 0;
setAttr "Mery_ac_lf_ring03.rotateZ" -42.291831;
setAttr "Mery_ac_rg_ring02.rotateX" 0.827389;
setAttr "Mery_ac_rg_thumb01.rotateX" 28.302883;
setAttr "Mery_ac_rg_index03.rotateX" 3.30324;
setAttr "Mery_ac_rg_index02.rotateX" 0.373954;
setAttr "Mery_ac_rg_index01.rotateX" -13.880063;
setAttr "Mery_ac_rg_index_base.rotateX" 0;
setAttr "Mery_ac_rg_thumb03.rotateX" -6.725448;
setAttr "Mery_ac_rg_thumb02.rotateX" -10.301769;
setAttr "Mery_ac_rg_ring01.rotateX" 3.487558;
setAttr "Mery_ac_rg_ring_base.rotateX" 0;
setAttr "Mery_ac_rg_pinky03.rotateX" -2.291831;
setAttr "Mery_ac_rg_pinky02.rotateX" 0.691009;
setAttr "Mery_ac_rg_pinky01.rotateX" 4.557372;
setAttr "Mery_ac_rg_pinky_base.rotateX" 0;
setAttr "Mery_ac_rg_middle03.rotateX" -2.291831;
setAttr "Mery_ac_rg_middle02.rotateX" 0.293705;
setAttr "Mery_ac_rg_middle01.rotateX" -1.216076;
setAttr "Mery_ac_rg_middle_base.rotateX" 0;
setAttr "Mery_ac_rg_ring03.rotateX" -2.291831;
setAttr "Mery_ac_rg_ring02.rotateY" -3.133414;
setAttr "Mery_ac_rg_thumb01.rotateY" -4.043442;
setAttr "Mery_ac_rg_index03.rotateY" 0.399745;
setAttr "Mery_ac_rg_index02.rotateY" -3.219081;
setAttr "Mery_ac_rg_index01.rotateY" -7.40807;
setAttr "Mery_ac_rg_index_base.rotateY" 0;
setAttr "Mery_ac_rg_thumb03.rotateY" 5.749484;
setAttr "Mery_ac_rg_thumb02.rotateY" 10.317666;
setAttr "Mery_ac_rg_ring01.rotateY" -3.855357;
setAttr "Mery_ac_rg_ring_base.rotateY" 0;
setAttr "Mery_ac_rg_pinky03.rotateY" -2.291831;
setAttr "Mery_ac_rg_pinky02.rotateY" -3.166255;
setAttr "Mery_ac_rg_pinky01.rotateY" -14.830043;
setAttr "Mery_ac_rg_pinky_base.rotateY" 0;
setAttr "Mery_ac_rg_middle03.rotateY" -2.291831;
setAttr "Mery_ac_rg_middle02.rotateY" -3.227384;
setAttr "Mery_ac_rg_middle01.rotateY" -6.141131;
setAttr "Mery_ac_rg_middle_base.rotateY" 0;
setAttr "Mery_ac_rg_ring03.rotateY" -2.291831;
setAttr "Mery_ac_rg_ring02.rotateZ" -102.114342;
setAttr "Mery_ac_rg_thumb01.rotateZ" -8.354095;
setAttr "Mery_ac_rg_index03.rotateZ" -70.73108;
setAttr "Mery_ac_rg_index02.rotateZ" -83.944531;
setAttr "Mery_ac_rg_index01.rotateZ" -75.51321;
setAttr "Mery_ac_rg_index_base.rotateZ" 0;
setAttr "Mery_ac_rg_thumb03.rotateZ" -43.610245;
setAttr "Mery_ac_rg_thumb02.rotateZ" -17.469513;
setAttr "Mery_ac_rg_ring01.rotateZ" -89.515243;
setAttr "Mery_ac_rg_ring_base.rotateZ" 0;
setAttr "Mery_ac_rg_pinky03.rotateZ" -42.291831;
setAttr "Mery_ac_rg_pinky02.rotateZ" -89.632704;
setAttr "Mery_ac_rg_pinky01.rotateZ" -93.331885;
setAttr "Mery_ac_rg_pinky_base.rotateZ" 0;
setAttr "Mery_ac_rg_middle03.rotateZ" -42.291831;
setAttr "Mery_ac_rg_middle02.rotateZ" -102.517377;
setAttr "Mery_ac_rg_middle01.rotateZ" -86.476423;
setAttr "Mery_ac_rg_middle_base.rotateZ" 0;
setAttr "Mery_ac_rg_ring03.rotateZ" -42.291831;</code></code></pre>



<pre class="wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background has-link-color wp-elements-5a59e09969fb0b619eb8a71269f1ff2a"><code>//半握拳
setAttr "Mery_ac_lf_pinky_base.rotateX" -2.291831;
setAttr "Mery_ac_lf_thumb03.rotateX" -2.291831;
setAttr "Mery_ac_lf_thumb02.rotateX" -2.291831;
setAttr "Mery_ac_lf_thumb01.rotateX" 19.708169;
setAttr "Mery_ac_lf_index03.rotateX" -2.291831;
setAttr "Mery_ac_lf_index02.rotateX" -2.291831;
setAttr "Mery_ac_lf_ring03.rotateX" -2.291831;
setAttr "Mery_ac_lf_ring02.rotateX" -2.291831;
setAttr "Mery_ac_lf_ring01.rotateX" -0.168926;
setAttr "Mery_ac_lf_ring_base.rotateX" -2.291831;
setAttr "Mery_ac_lf_pinky03.rotateX" -2.291831;
setAttr "Mery_ac_lf_pinky02.rotateX" -2.291831;
setAttr "Mery_ac_lf_index01.rotateX" -2.291831;
setAttr "Mery_ac_lf_index_base.rotateX" -2.291831;
setAttr "Mery_ac_lf_middle03.rotateX" -2.291831;
setAttr "Mery_ac_lf_middle02.rotateX" -2.291831;
setAttr "Mery_ac_lf_middle01.rotateX" -2.291831;
setAttr "Mery_ac_lf_middle_base.rotateX" -2.291831;
setAttr "Mery_ac_lf_pinky01.rotateX" -2.291831;
setAttr "Mery_ac_lf_pinky_base.rotateY" -2.291831;
setAttr "Mery_ac_lf_thumb03.rotateY" -2.291831;
setAttr "Mery_ac_lf_thumb02.rotateY" 9.708169;
setAttr "Mery_ac_lf_thumb01.rotateY" 4.708169;
setAttr "Mery_ac_lf_index03.rotateY" -2.291831;
setAttr "Mery_ac_lf_index02.rotateY" -2.291831;
setAttr "Mery_ac_lf_ring03.rotateY" -2.291831;
setAttr "Mery_ac_lf_ring02.rotateY" -2.291831;
setAttr "Mery_ac_lf_ring01.rotateY" -3.938286;
setAttr "Mery_ac_lf_ring_base.rotateY" -2.291831;
setAttr "Mery_ac_lf_pinky03.rotateY" -2.291831;
setAttr "Mery_ac_lf_pinky02.rotateY" -2.291831;
setAttr "Mery_ac_lf_index01.rotateY" 6.807102;
setAttr "Mery_ac_lf_index_base.rotateY" -2.291831;
setAttr "Mery_ac_lf_middle03.rotateY" -2.291831;
setAttr "Mery_ac_lf_middle02.rotateY" -2.291831;
setAttr "Mery_ac_lf_middle01.rotateY" 1.008259;
setAttr "Mery_ac_lf_middle_base.rotateY" -2.291831;
setAttr "Mery_ac_lf_pinky01.rotateY" -17.037031;
setAttr "Mery_ac_lf_pinky_base.rotateZ" -2.291831;
setAttr "Mery_ac_lf_thumb03.rotateZ" -24.291831;
setAttr "Mery_ac_lf_thumb02.rotateZ" -4.291831;
setAttr "Mery_ac_lf_thumb01.rotateZ" -7.291831;
setAttr "Mery_ac_lf_index03.rotateZ" -22.291831;
setAttr "Mery_ac_lf_index02.rotateZ" -32.291831;
setAttr "Mery_ac_lf_ring03.rotateZ" -42.291831;
setAttr "Mery_ac_lf_ring02.rotateZ" -42.291831;
setAttr "Mery_ac_lf_ring01.rotateZ" -42.291831;
setAttr "Mery_ac_lf_ring_base.rotateZ" -2.291831;
setAttr "Mery_ac_lf_pinky03.rotateZ" -42.291831;
setAttr "Mery_ac_lf_pinky02.rotateZ" -32.291831;
setAttr "Mery_ac_lf_index01.rotateZ" -22.291831;
setAttr "Mery_ac_lf_index_base.rotateZ" -2.291831;
setAttr "Mery_ac_lf_middle03.rotateZ" -42.291831;
setAttr "Mery_ac_lf_middle02.rotateZ" -52.291831;
setAttr "Mery_ac_lf_middle01.rotateZ" -32.291831;
setAttr "Mery_ac_lf_middle_base.rotateZ" -2.291831;
setAttr "Mery_ac_lf_pinky01.rotateZ" -47.291831;
setAttr "Mery_ac_rg_pinky_base.rotateX" -2.291831;
setAttr "Mery_ac_rg_thumb03.rotateX" -2.291831;
setAttr "Mery_ac_rg_thumb02.rotateX" -2.291831;
setAttr "Mery_ac_rg_thumb01.rotateX" 19.708169;
setAttr "Mery_ac_rg_index03.rotateX" -2.291831;
setAttr "Mery_ac_rg_index02.rotateX" -2.291831;
setAttr "Mery_ac_rg_ring03.rotateX" -2.291831;
setAttr "Mery_ac_rg_ring02.rotateX" -2.291831;
setAttr "Mery_ac_rg_ring01.rotateX" -0.168926;
setAttr "Mery_ac_rg_ring_base.rotateX" -2.291831;
setAttr "Mery_ac_rg_pinky03.rotateX" -2.291831;
setAttr "Mery_ac_rg_pinky02.rotateX" -2.291831;
setAttr "Mery_ac_rg_index01.rotateX" -2.291831;
setAttr "Mery_ac_rg_index_base.rotateX" -2.291831;
setAttr "Mery_ac_rg_middle03.rotateX" -2.291831;
setAttr "Mery_ac_rg_middle02.rotateX" -2.291831;
setAttr "Mery_ac_rg_middle01.rotateX" -2.291831;
setAttr "Mery_ac_rg_middle_base.rotateX" -2.291831;
setAttr "Mery_ac_rg_pinky01.rotateX" -2.291831;
setAttr "Mery_ac_rg_pinky_base.rotateY" -2.291831;
setAttr "Mery_ac_rg_thumb03.rotateY" -2.291831;
setAttr "Mery_ac_rg_thumb02.rotateY" 9.708169;
setAttr "Mery_ac_rg_thumb01.rotateY" 4.708169;
setAttr "Mery_ac_rg_index03.rotateY" -2.291831;
setAttr "Mery_ac_rg_index02.rotateY" -2.291831;
setAttr "Mery_ac_rg_ring03.rotateY" -2.291831;
setAttr "Mery_ac_rg_ring02.rotateY" -2.291831;
setAttr "Mery_ac_rg_ring01.rotateY" -3.938286;
setAttr "Mery_ac_rg_ring_base.rotateY" -2.291831;
setAttr "Mery_ac_rg_pinky03.rotateY" -2.291831;
setAttr "Mery_ac_rg_pinky02.rotateY" -2.291831;
setAttr "Mery_ac_rg_index01.rotateY" 6.807102;
setAttr "Mery_ac_rg_index_base.rotateY" -2.291831;
setAttr "Mery_ac_rg_middle03.rotateY" -2.291831;
setAttr "Mery_ac_rg_middle02.rotateY" -2.291831;
setAttr "Mery_ac_rg_middle01.rotateY" 1.008259;
setAttr "Mery_ac_rg_middle_base.rotateY" -2.291831;
setAttr "Mery_ac_rg_pinky01.rotateY" -17.037031;
setAttr "Mery_ac_rg_pinky_base.rotateZ" -2.291831;
setAttr "Mery_ac_rg_thumb03.rotateZ" -24.291831;
setAttr "Mery_ac_rg_thumb02.rotateZ" -4.291831;
setAttr "Mery_ac_rg_thumb01.rotateZ" -7.291831;
setAttr "Mery_ac_rg_index03.rotateZ" -22.291831;
setAttr "Mery_ac_rg_index02.rotateZ" -32.291831;
setAttr "Mery_ac_rg_ring03.rotateZ" -42.291831;
setAttr "Mery_ac_rg_ring02.rotateZ" -42.291831;
setAttr "Mery_ac_rg_ring01.rotateZ" -42.291831;
setAttr "Mery_ac_rg_ring_base.rotateZ" -2.291831;
setAttr "Mery_ac_rg_pinky03.rotateZ" -42.291831;
setAttr "Mery_ac_rg_pinky02.rotateZ" -32.291831;
setAttr "Mery_ac_rg_index01.rotateZ" -22.291831;
setAttr "Mery_ac_rg_index_base.rotateZ" -2.291831;
setAttr "Mery_ac_rg_middle03.rotateZ" -42.291831;
setAttr "Mery_ac_rg_middle02.rotateZ" -52.291831;
setAttr "Mery_ac_rg_middle01.rotateZ" -32.291831;
setAttr "Mery_ac_rg_middle_base.rotateZ" -2.291831;
setAttr "Mery_ac_rg_pinky01.rotateZ" -47.291831;</code></pre>
<p><a href="https://www.miaodonghua.com/1785.html">Maya脚本：Mery睁眼+握拳脚本使用方法</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/1785.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
