<?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脚本 归档 - 喵喵动画屋</title>
	<atom:link href="https://www.miaodonghua.com/tag/maya%E8%84%9A%E6%9C%AC/feed" rel="self" type="application/rss+xml" />
	<link>https://www.miaodonghua.com/tag/maya脚本</link>
	<description>探索Maya世界：基础教程、动画技巧、建模艺术与渲染技术。</description>
	<lastBuildDate>Fri, 26 Nov 2021 17:44:09 +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>maya脚本 归档 - 喵喵动画屋</title>
	<link>https://www.miaodonghua.com/tag/maya脚本</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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 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 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 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>
	</channel>
</rss>
