<?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/category/maya-script/feed" rel="self" type="application/rss+xml" />
	<link>https://www.miaodonghua.com/category/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=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/category/maya-script</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Maya脚本：在Maya viewport视图中，模型显示为白色怎么去修复？</title>
		<link>https://www.miaodonghua.com/2891.html</link>
					<comments>https://www.miaodonghua.com/2891.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Sat, 21 Oct 2023 18:22:29 +0000</pubDate>
				<category><![CDATA[MAYA多边形建模]]></category>
		<category><![CDATA[MAYA建模]]></category>
		<category><![CDATA[MAYA脚本]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=2891</guid>

					<description><![CDATA[<p>在Maya viewport视图中，模型显示为白色怎么去修复？通常针对这样的模型，重新指定材质是完全没用的。这 &#8230; </p>
<p class="link-more"><a href="https://www.miaodonghua.com/2891.html" class="more-link">继续阅读<span class="screen-reader-text">“Maya脚本：在Maya viewport视图中，模型显示为白色怎么去修复？”</span></a></p>
<p><a href="https://www.miaodonghua.com/2891.html">Maya脚本：在Maya viewport视图中，模型显示为白色怎么去修复？</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>在Maya viewport视图中，模型显示为白色怎么去修复？通常针对这样的模型，重新指定材质是完全没用的。这里我们可以选择模型，执行这段修复代码就可以解决这个问题。</p>



<pre class="wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background"><code>string $select_dd&#91;] = `ls -shapes -sl`;
setAttr ($select_dd&#91;0] + ".displayColors") 1;
setAttr ($select_dd&#91;0] + ".displayColors") 0;</code></pre>



<p>现在我们也能够给模型正常指定材质了那么目前，我也只知道这种修复方法。如果你有更好的解决方案，欢迎与大家分享！</p>



<p>原作者：<a href="https://ddankhazi.com/2016/10/30/white-surfaces-in-viewport-bug/">视口中的白色表面错误 – Denes Dankhazi&#8217;s Blogfolio (ddankhazi.com)</a></p>
<p><a href="https://www.miaodonghua.com/2891.html">Maya脚本：在Maya viewport视图中，模型显示为白色怎么去修复？</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/2891.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maya脚本：Maya动画滑步修复工具，适用于常规绑定的人和动物模型</title>
		<link>https://www.miaodonghua.com/2786.html</link>
					<comments>https://www.miaodonghua.com/2786.html#comments</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Mon, 28 Aug 2023 08:13:26 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=2786</guid>

					<description><![CDATA[<p>Python代码 Python code (English interface)</p>
<p><a href="https://www.miaodonghua.com/2786.html">Maya脚本：Maya动画滑步修复工具，适用于常规绑定的人和动物模型</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[


<p>Python代码</p>



<hr class="wp-block-separator has-text-color has-vivid-cyan-blue-color has-alpha-channel-opacity has-vivid-cyan-blue-background-color has-background is-style-wide"/>



<pre class="wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background"><code>import maya.cmds as cmds

def updateInfo(*args):
    selected_objects = cmds.ls(selection=True)
    if selected_objects:
        selected_object = selected_objects&#91;0]
        
        current_frame = cmds.currentTime(query=True)
        translate_z = cmds.getAttr(selected_object + ".translateZ")
        
        cmds.floatField(currentFrameField, edit=True, value=current_frame)
        cmds.floatField(translateZField, edit=True, value=translate_z)
    else:
        cmds.confirmDialog(title="警告", message="请选择一个对象。", button="好")

def updateInfo1(*args):
    selected_objects = cmds.ls(selection=True)
    if selected_objects:
        selected_object = selected_objects&#91;0]
        
        current_frame = cmds.currentTime(query=True)
        translate_z = cmds.getAttr(selected_object + ".translateZ")
        
        cmds.floatField(currentFrameField1, edit=True, value=current_frame)
        cmds.floatField(translateZField1, edit=True, value=translate_z)
    else:
        cmds.confirmDialog(title="警告", message="请选择一个对象。", button="好")

def calculateDifference(*args):
    translate_z1 = cmds.floatField(translateZField1, query=True, value=True)
    translate_z = cmds.floatField(translateZField, query=True, value=True)
    current_frame1 = cmds.floatField(currentFrameField1, query=True, value=True)
    current_frame = cmds.floatField(currentFrameField, query=True, value=True)
    
    result = (translate_z1 - translate_z) / (current_frame1 - current_frame)
    cmds.floatField(resultField, edit=True, value=result)

def applyNewTranslateZ(*args):
    selected_objects = cmds.ls(selection=True)
    if selected_objects:
        selected_object = selected_objects&#91;0]
        
        new_translate_z = cmds.getAttr(selected_object + ".translateZ") + cmds.floatField(resultField, query=True, value=True)
        current_frame = cmds.currentTime(query=True)
        
        original_translate_z = cmds.getAttr(selected_object + ".translateZ", time=current_frame)
        
        cmds.currentTime(current_frame + 1, edit=True)
        
        cmds.setAttr(selected_object + ".translateZ", new_translate_z)
        
        cmds.setKeyframe(selected_object, attribute="translateZ", t=current_frame + 1, v=new_translate_z)

if cmds.window("myWindow", exists=True):
    cmds.deleteUI("myWindow")

window = cmds.window("myWindow", title="滑步修复工具@喵喵动画屋", widthHeight=(250, 350))
main_layout = cmds.columnLayout()

cmds.text(label="选定一个对象并点击下面的按钮来获取信息。")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.text(label="当前关键帧：")
currentFrameField = cmds.floatField(value=0, precision=0, editable=False)
cmds.setParent("..")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.text(label="位移Z：")
translateZField = cmds.floatField(value=0, precision=4, editable=False)
cmds.setParent("..")

cmds.button(label="获取起始帧信息", command=updateInfo)

cmds.separator(height=20, style="none")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.text(label="当前关键帧：")
currentFrameField1 = cmds.floatField(value=0, precision=0, editable=False)
cmds.setParent("..")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.text(label="位移Z：")
translateZField1 = cmds.floatField(value=0, precision=4, editable=False)
cmds.setParent("..")

cmds.button(label="获取结束帧信息", command=updateInfo1)

cmds.separator(height=20, style="none")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.button(label="计算差值", command=calculateDifference)
resultField = cmds.floatField(value=0, precision=4, editable=False)
cmds.setParent("..")

cmds.separator(height=20, style="none")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.button(label="开始修复滑步", command=applyNewTranslateZ)
cmds.setParent("..")

cmds.text(label="从“脚踩地”的这一帧开始修复，直到“脚离地”前一帧！", align="left")

cmds.showWindow(window)
</code></pre>



<p>Python code (English interface)</p>



<hr class="wp-block-separator has-text-color has-vivid-cyan-blue-color has-alpha-channel-opacity has-vivid-cyan-blue-background-color has-background is-style-wide"/>



<pre class="wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background"><code>import maya.cmds as cmds

def updateInfo(*args):
    selected_objects = cmds.ls(selection=True)
    if selected_objects:
        selected_object = selected_objects&#91;0]
        
        current_frame = cmds.currentTime(query=True)
        translate_z = cmds.getAttr(selected_object + ".translateZ")
        
        cmds.floatField(currentFrameField, edit=True, value=current_frame)
        cmds.floatField(translateZField, edit=True, value=translate_z)
    else:
        cmds.confirmDialog(title="Warning", message="Please select an object.", button="OK")

def updateInfo1(*args):
    selected_objects = cmds.ls(selection=True)
    if selected_objects:
        selected_object = selected_objects&#91;0]
        
        current_frame = cmds.currentTime(query=True)
        translate_z = cmds.getAttr(selected_object + ".translateZ")
        
        cmds.floatField(currentFrameField1, edit=True, value=current_frame)
        cmds.floatField(translateZField1, edit=True, value=translate_z)
    else:
        cmds.confirmDialog(title="Warning", message="Please select an object.", button="OK")

def calculateDifference(*args):
    translate_z1 = cmds.floatField(translateZField1, query=True, value=True)
    translate_z = cmds.floatField(translateZField, query=True, value=True)
    current_frame1 = cmds.floatField(currentFrameField1, query=True, value=True)
    current_frame = cmds.floatField(currentFrameField, query=True, value=True)
    
    result = (translate_z1 - translate_z) / (current_frame1 - current_frame)
    cmds.floatField(resultField, edit=True, value=result)

def applyNewTranslateZ(*args):
    selected_objects = cmds.ls(selection=True)
    if selected_objects:
        selected_object = selected_objects&#91;0]
        
        new_translate_z = cmds.getAttr(selected_object + ".translateZ") + cmds.floatField(resultField, query=True, value=True)
        current_frame = cmds.currentTime(query=True)
        
        original_translate_z = cmds.getAttr(selected_object + ".translateZ", time=current_frame)
        
        cmds.currentTime(current_frame + 1, edit=True)
        
        cmds.setAttr(selected_object + ".translateZ", new_translate_z)
        
        cmds.setKeyframe(selected_object, attribute="translateZ", t=current_frame + 1, v=new_translate_z)

if cmds.window("myWindow", exists=True):
    cmds.deleteUI("myWindow")

window = cmds.window("myWindow", title="Slide Fix Tool @ Meow Animation Studio", widthHeight=(250, 350))
main_layout = cmds.columnLayout()

cmds.text(label="Select an object and click the buttons below to get information.")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.text(label="Current Frame:")
currentFrameField = cmds.floatField(value=0, precision=0, editable=False)
cmds.setParent("..")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.text(label="Translate Z:")
translateZField = cmds.floatField(value=0, precision=4, editable=False)
cmds.setParent("..")

cmds.button(label="Get Start Frame Info", command=updateInfo)

cmds.separator(height=20, style="none")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.text(label="Current Frame:")
currentFrameField1 = cmds.floatField(value=0, precision=0, editable=False)
cmds.setParent("..")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.text(label="Translate Z:")
translateZField1 = cmds.floatField(value=0, precision=4, editable=False)
cmds.setParent("..")

cmds.button(label="Get End Frame Info", command=updateInfo1)

cmds.separator(height=20, style="none")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.button(label="Calculate Difference", command=calculateDifference)
resultField = cmds.floatField(value=0, precision=4, editable=False)
cmds.setParent("..")

cmds.separator(height=20, style="none")

cmds.rowLayout(numberOfColumns=2, columnWidth2=(120, 70))
cmds.button(label="Start Slide Fix", command=applyNewTranslateZ)
cmds.setParent("..")

cmds.text(label="Start fixing from the frame where the foot touches the ground, until the frame just before the foot leaves the ground!", align="left")

cmds.showWindow(window)
</code></pre>
<p><a href="https://www.miaodonghua.com/2786.html">Maya脚本：Maya动画滑步修复工具，适用于常规绑定的人和动物模型</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/2786.html/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Maya脚本：中文改英文脚本</title>
		<link>https://www.miaodonghua.com/2534.html</link>
					<comments>https://www.miaodonghua.com/2534.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Wed, 02 Aug 2023 17:28:31 +0000</pubDate>
				<category><![CDATA[MAYA脚本]]></category>
		<guid isPermaLink="false">https://www.miaodonghua.com/?p=2534</guid>

					<description><![CDATA[<p>下载以后，如果被杀毒软件查杀了，我们可以找回并添加信任，或者直接把杀毒软件暂时关闭了再来运行。（本脚本不修改m &#8230; </p>
<p class="link-more"><a href="https://www.miaodonghua.com/2534.html" class="more-link">继续阅读<span class="screen-reader-text">“Maya脚本：中文改英文脚本”</span></a></p>
<p><a href="https://www.miaodonghua.com/2534.html">Maya脚本：中文改英文脚本</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-file"><a id="wp-block-file--media-9632946b-04a9-47d1-8e07-f7cecd2d1af2" href="https://www.miaodonghua.com/wp-content/uploads/2023/08/Maya中英文切换脚本.7z"><strong>点击此处下载Maya中英文切换脚本</strong></a><a href="https://www.miaodonghua.com/wp-content/uploads/2023/08/Maya中英文切换脚本.7z" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-9632946b-04a9-47d1-8e07-f7cecd2d1af2">下载</a></div>



<figure class="wp-block-image size-full"><a href="https://www.miaodonghua.com/wp-content/uploads/2023/08/Snipaste_2023-08-03_01-16-28.webp"><img fetchpriority="high" decoding="async" width="345" height="151" src="https://www.miaodonghua.com/wp-content/uploads/2023/08/Snipaste_2023-08-03_01-16-28.webp" alt="" class="wp-image-2536"/></a></figure>



<p>下载以后，如果被杀毒软件查杀了，我们可以找回并添加信任，或者直接把杀毒软件暂时关闭了再来运行。（本脚本不修改maya软件数据，全版本通用，切换语言自动恢复以前的设置，可放心使用）</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教学：中英文切换一键脚本分享，Maya所有版本通用" width="525" height="295" src="https://www.youtube.com/embed/zq3hpyVk7vs?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/2534.html">Maya脚本：中文改英文脚本</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/2534.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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 loading="lazy" 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 loading="lazy" 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>
	</channel>
</rss>
