<?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>快捷键设置 归档 - 喵喵动画屋</title>
	<atom:link href="https://www.miaodonghua.com/tag/%E5%BF%AB%E6%8D%B7%E9%94%AE%E8%AE%BE%E7%BD%AE/feed" rel="self" type="application/rss+xml" />
	<link>https://www.miaodonghua.com/tag/快捷键设置</link>
	<description>探索Maya世界：基础教程、动画技巧、建模艺术与渲染技术。</description>
	<lastBuildDate>Fri, 11 Aug 2023 18:43:35 +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>快捷键设置 归档 - 喵喵动画屋</title>
	<link>https://www.miaodonghua.com/tag/快捷键设置</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Maya中如何设置快捷键(Hotkey Editor)？</title>
		<link>https://www.miaodonghua.com/1111.html</link>
					<comments>https://www.miaodonghua.com/1111.html#respond</comments>
		
		<dc:creator><![CDATA[喵喵动画屋]]></dc:creator>
		<pubDate>Thu, 05 Nov 2020 13:16:46 +0000</pubDate>
				<category><![CDATA[MAYA综合]]></category>
		<category><![CDATA[Center Pivot]]></category>
		<category><![CDATA[Hotkey Editor]]></category>
		<category><![CDATA[Maya入门]]></category>
		<category><![CDATA[Maya教程]]></category>
		<category><![CDATA[X-Ray]]></category>
		<category><![CDATA[快捷键]]></category>
		<category><![CDATA[快捷键设置]]></category>
		<guid isPermaLink="false">https://miaodonghua.com/?p=1111</guid>

					<description><![CDATA[<p>本次讲解：Maya快捷键（热键）设置。热键位置：窗口菜单（windows）→设置/首选项（setting/pr &#8230; </p>
<p class="link-more"><a href="https://www.miaodonghua.com/1111.html" class="more-link">继续阅读<span class="screen-reader-text">“Maya中如何设置快捷键(Hotkey Editor)？”</span></a></p>
<p><a href="https://www.miaodonghua.com/1111.html">Maya中如何设置快捷键(Hotkey Editor)？</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<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/3I2mZNKNKOs?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><strong>本次讲解：Maya快捷键（热键）设置。<span class="has-inline-color has-luminous-vivid-orange-color">热键位置：窗口菜单（windows）→设置/首选项（setting/preference）→热键编辑器（Hotkey Editor）。</span></strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/7EdqkvGTQ85XtIS.jpg" alt=""/></figure>
</div>


<p>那么这里，我们先不忙着设置快捷键，我们先来看一下右边的这个键盘图。<strong>那么这个蓝色按键，表示的是已经指定的快捷键。灰色的按键，就表示没有指定的快捷键。</strong>当然在这里面，像控制类型的按键：Shift，Ctrl，Alt之类的，是不能单独设置快捷键的。那么我们排除了这些控制键，我们会发现单个未指定的按键已经不多了。不过没关系，因为我们还可以使用<strong>组合键来作为热键</strong>。那么我们比较常见的组合键，就是以Shift，Ctrl，Alt为基础来进行指定的。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/OWZmb1FIASKjMgk.jpg" alt=""/></figure>
</div>


<p><strong>那么我们怎么才能确定哪些组合键未被使用呢？</strong>其实这个呢很简单，因为我们只要<strong>按下Shift，Ctrl，Alt，或者是同时按下它们当中的几个按键</strong>，<strong>那么我们会发现其实上我们可以使用的快捷键还是非常多的</strong>，完全不用担心快捷键不够用的问题。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/vUQDESPkAlHt57B.jpg" alt=""/></figure>
</div>


<p>那么在默认情况下，鼠标移动到蓝色按键上，就可以看到关联的快捷键，以及对应的命令。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/C5ByXxWPQJ3AMea.jpg" alt=""/></figure>
</div>


<p>那么这里，我们可以通过搜索热键的方式来查看更加详细的关联情况。我<strong>们可以在左下角，将搜索类型设置为：热键，然后我们单击这个搜索框就可以按下我们需要查找的快捷键。<span class="has-inline-color has-luminous-vivid-orange-color">例如我们最熟悉的4键线框显示，那么我们除了可以看到：它所对应的线框显示命令。我们还可以看到：它在不同编辑器中对应的命令。</span></strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/ramj2loivAeYbcn.jpg" alt=""/></figure>
</div>


<p>那么这里假设我们要修改这个快捷键，我们就<strong>单击它进入修改模式。</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/VqRKo98CBn1hm5E.jpg" alt=""/></figure>
</div>


<p>然后我们按住Ctrl键，在右侧看下哪些组合键可以使用。<strong>那么这里，我们就把它修改为：Ctrl+2，修改完成之后，我们再在搜索框中按下：Ctrl+2，我们再来确认一下，快捷键是否修改正确。</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/VkrA3pj5MdBxFSu.jpg" alt=""/></figure>
</div>


<p>确认无误之后，我们点击保存，我们回到场景中，我们只要按下Ctrl+2，就可以切换到线框显示。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/k5pWh7IsZbi4dtK.jpg" alt=""/></figure>
</div>


<p>我们回到热键编辑器中，那么这里，我们还是将它改为4键，我们点击保存。<strong>那么刚才我们讲的是如何修改已经存在的快捷键。下面我们就来看一下：如何给命令添加快捷键。</strong>那么这里：我们就以修改菜单下的这个<strong>“居中枢轴”。</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/JP6viH9x8ybt7RO.jpg" alt=""/></figure>
</div>


<p>还有着色菜单下的这个<strong>“半透明显示”</strong>来做演示。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/TMDtGH2iEorsSqn.jpg" alt=""/></figure>
</div>


<p>那么这个居中枢轴的命令是：<strong>Center Pivot</strong>，我们将搜索模式切换为<strong>“应用程序命令名称”</strong>模式，然后，<strong>我们手动输入：Center Pivot</strong>，这样这里就会显示居中枢轴命令。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/KHRurd9T3zhngS2.jpg" alt=""/></figure>
</div>


<p>我们选择命令，这里我们把快捷键设置为：Ctrl+J，然后点击保存。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/4I6xuPWzgXfKr8G.jpg" alt=""/></figure>
</div>


<p>那么这里，我们查找命令的时候，使用的是这个<strong>“应用程序命令名称”</strong>查找。同时呢，我们也可以使用的这个<strong>“运行时命令”</strong>查找。<strong><span class="has-inline-color has-luminous-vivid-orange-color">那么它们最大的查找区别在于：单词之间一个有空格，一个不能包含空格。</span>那么这个运行时命令为什么不能有空格呢?主要的原因，还是因为“运行时的命令”是由多个命令或者脚本组成的，所以这个“运行时的命令”就是一个整体。那么既然整体，字符之间就不能使用空格。</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/jCzArPhsw7o3SLi.jpg" alt=""/></figure>
</div>


<p><strong>所以这里我们在使用这个“运行时命令”搜索的时候一定要记得把中间的空格去掉，这样呢，就可以正常的查找命令了。</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/AlG4yDjhM26idQC.jpg" alt=""/></figure>
</div>


<p>接着呢，我们再来添加一个<strong>“半透明显示”的命令</strong>。那么这个“半透明显示”对应的名称是<strong>xray</strong>。所以这里，我们直接输入xray就可以找到对应的命令，我们选择命令，这里我们把快捷键设置为：Ctrl+L，然后点击保存。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/3HywxJCsm1GgVuI.jpg" alt=""/></figure>
</div>


<p>那么接下来，我再教给大家一个<strong>开启线框着色的方法。</strong>那么这个线框着色，在<strong>Maya中是没办法直接查找命令来添加快捷键的。</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/tYQETzjfO1lui8I.jpg" alt=""/></figure>
</div>


<p>所以这里呢，我们可以<strong>通过添加“运行时的脚本命令”来实现。</strong>怎么做呢？我们回到热键编辑器中，我们在<strong>右侧打开“运行时命令编辑器”</strong>。这里我们点击新建。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/eQ32EVvjWoRUgbA.jpg" alt=""/></figure>
</div>


<p>我们输入一个<strong>“wireframeonshaded”</strong>，当然，这个名称我们可以随便写，但是呢<strong>不能包含空格键。</strong>而至于这个描述，我们可写可不写。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/u6rfqSjsOdvM2Ug.jpg" alt=""/></figure>
</div>


<p>脚本语言，我就使用<strong>默认的MEL</strong>，那么这个脚本内容是固定的，我们直接粘贴过来。<em><strong><span class="has-inline-color has-vivid-cyan-blue-color">那么这里，我要郑重提醒大家：</span></strong></em><strong><em><span class="has-inline-color has-vivid-cyan-blue-color">这个内容最好就从记事本中复制过来，因为其它地方复制过来的内容会包含一些特殊的格式。最终有可能会导致我们的脚本没办法正常运行。</span></em></strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/qos9f8OzdglL4TA.jpg" alt=""/></figure>
</div>


<pre class="wp-block-code"><code>脚本内容：
string $selectedPanel = `getPanel -wf`;

int $shadedWireState = `modelEditor -q -wos $selectedPanel`;

if(`modelEditor -ex $selectedPanel`)

{

    setWireframeOnShadedOption (!$shadedWireState) $selectedPanel;

}
</code></pre>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/UMi68zSNxaOGYnm.jpg" alt=""/></figure>
</div>


<p>现在我们只要在这个“<strong>运行时命令”中搜索刚才的“wireframeonshaded”就可以找到对应的脚本命令。我们选择命令，这里我们把快捷键设置为：Ctrl+K</strong>，然后点击保存。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/MdUqiyaQcxe2LoD.jpg" alt=""/></figure>
</div>


<p>我们回到场景中，现在我们<strong>只要使用快捷键Ctrl+K，就可以快速开启或者关闭线框着色显示，非常的方便。</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/gIZPo1Y35w7A6GR.jpg" alt=""/></figure>
</div>


<p>那么关于这个快捷键设置，基本上也就这些内容。如果我们在设置的过程中，不小心弄的乱七八糟，我们可以在这个<strong>热键设置中选择“Maya默认值”</strong>。这样的话，我们的快捷键就会重置为默认时候的状态，非常简单。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://i.loli.net/2020/11/05/vKsk9TLQ6wfEUGX.jpg" alt=""/></figure>
</div><p><a href="https://www.miaodonghua.com/1111.html">Maya中如何设置快捷键(Hotkey Editor)？</a>最先出现在<a href="https://www.miaodonghua.com">喵喵动画屋</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.miaodonghua.com/1111.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
