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

<image>
	<url>https://www.miaodonghua.com/wp-content/uploads/2020/11/cropped-shuqian_logo.webp</url>
	<title>maya script 归档 - 喵喵动画屋</title>
	<link>https://www.miaodonghua.com/tag/maya-script</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>本次案例讲解：在指定帧位置，开始执行命令的表达式。 表达式原理：利用&#46;&#46;&#46;</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 class="wp-block-paragraph"><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 wp-block-paragraph">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">
<div class="video-container"><iframe title="Maya脚本教程：如何在特定帧开始执行命令？" width="500" height="281" src="https://www.youtube.com/embed/Qi7DvvU6y_g?feature=oembed&#038;wmode=opaque" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>
</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。 表达式原理：让复杂运&#46;&#46;&#46;</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">
<div class="video-container"><iframe title="Maya粒子动画教程：时间驱动粒子运动的实现方法" width="500" height="281" src="https://www.youtube.com/embed/f74ONQSIDk4?feature=oembed&#038;wmode=opaque" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>
</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>
	</channel>
</rss>
