282 lines
29 KiB
HTML
282 lines
29 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<title>MGPickerLink Command</title>
|
||
<meta name="generator" content="Help & Manual" />
|
||
<meta name="keywords" content="API,MGPickerLink command" />
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
<link type="text/css" href="default.css" rel="stylesheet" />
|
||
<style type="text/css">
|
||
body { margin: 0px; background: #F8F8F8; }
|
||
</style>
|
||
<script type="text/javascript" src="jquery.js"></script>
|
||
<script type="text/javascript" src="helpman_settings.js"></script>
|
||
<script type="text/javascript" src="helpman_topicinit.js"></script>
|
||
|
||
<script type="text/javascript">
|
||
HMSyncTOC("index.html", "mgpickerlink.htm");
|
||
</script>
|
||
<script type="text/javascript" src="highlight.js"></script>
|
||
<script type="text/javascript">
|
||
$(document).ready(function(){highlight();});
|
||
</script>
|
||
</head>
|
||
<body>
|
||
|
||
|
||
<table style="width:100%; border:none; border-spacing:0px; padding:0px; background:#D0D0D0">
|
||
<tr style="vertical-align:middle">
|
||
<td style="text-align:right">
|
||
<a href="welcome.htm"><img border="0" src="../common/images/MGtoolsHelp_Home.gif" width="34" height="22" alt="Home" /></a>
|
||
<a href="mgpickeritem.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
|
||
<a href="mgpickermenu.htm"><img border="0" src="../common/images/MGtoolsHelp_next.gif" width="34" height="22" alt="Next" /></a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
|
||
<!-- Placeholder for topic body. -->
|
||
<table style="width:100%;border:none;border-spacing:0px"><tr style="vertical-align:top"><td style="text-align:left;padding:5px">
|
||
<div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
|
||
<tr>
|
||
<td style="vertical-align:middle; height:8px; padding:1px; border:none"><p><span style="font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">命令</span><span style="font-family: 'Times New Roman',Times,Georgia,serif;"> (MEL/Python)</span></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="vertical-align:middle; height:5px; padding:1px; border:none"><h1 class="p_Heading1" style="margin: 19px 0 19px 0;"><span class="f_Heading1" style="font-size: 24pt; font-family: 'Times New Roman',Times,Georgia,serif;">MGPickerLink</span></h1>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<p class="p_Normal" style="margin: 14px 0 0 0;"><span style="font-family: 'Times New Roman',Times,Georgia,serif;">跳转到: </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;"> <a href="mgpicker.htm#synopsis" class="topiclink">概要</a>. <a href="mgpicker.htm#examples" class="topiclink">MEL例子</a>. <a href="https://www.helpandmanual.com/order.html" class="topiclink">Python例子</a>.</span></p>
|
||
<p class="p_Normal" style="margin: 19px 0 0 0;"><a id="synopsis" class="hmanchor"></a> <span style="font-size: 14pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">概要</span></p>
|
||
<p class="p_Normal" style="margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">MGPickerLink (linkIDString, [<a href="https://www.helpandmanual.com/order.html" class="topiclink">exist</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">] [<a href="mgpickerlink.htm#remove" class="topiclink">remove</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">] [<a href="mgpickerlink.htm#source" class="topiclink">source</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span><span style="font-family: 'Courier New',Courier,monospace;">] [<a href="mgpickerlink.htm#target" class="topiclink">target</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span><span style="font-family: 'Courier New',Courier,monospace;">] [<a href="mgpickerlink.htm#targetvalues" class="topiclink">targetValues</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span><span style="font-family: 'Courier New',Courier,monospace;">] [<a href="mgpickerlink.htm#type" class="topiclink">type</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">]) [<a href="mgpickerlink.htm#view" class="topiclink">view</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span><span style="font-family: 'Courier New',Courier,monospace;">])</span></p>
|
||
<p class="p_Normal" style="margin: 14px 0 14px 0;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">MGPickerLink</span><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">不可撤消</span><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">, 可以查询且可以编辑</span><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">。</span></p>
|
||
<p><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">这个命令创建, 查询或编辑一个picker连接。</span></p>
|
||
<p class="p_Normal"> </p>
|
||
<p class="p_Normal"> </p>
|
||
<div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
|
||
<tr>
|
||
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">长名 (短名)</span></p>
|
||
</td>
|
||
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic; font-weight: bold;">参数类型</span></p>
|
||
</td>
|
||
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">属性</span></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="exist" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-exist</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-ex</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><br />
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
|
||
<tr>
|
||
<td style="vertical-align:top; width:40px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="color: #000000;"> </span></p>
|
||
</td>
|
||
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">这个标签只能用于查询模式,用来获取该连接是否存在。</span></p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="remove" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-remove</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-rm</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><br />
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
|
||
<tr>
|
||
<td style="vertical-align:top; width:40px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="color: #000000;"> </span></p>
|
||
</td>
|
||
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">这个标签只能用于编辑模式,用来删除某个连接。</span></p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="source" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-source</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-s</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
|
||
<tr>
|
||
<td style="vertical-align:top; width:40px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="color: #000000;"> </span></p>
|
||
</td>
|
||
<td style="vertical-align:middle; width:942px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">这个标签用于查询模式来获取该连接的源picker对象的id。</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">用在创建模式时,并必须同时指定-target标签来指定目标picker对象的id。这个标签不能用于编辑模式。</span></p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="target" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-target</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-t</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
|
||
<tr>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span></p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
|
||
<tr>
|
||
<td style="vertical-align:top; width:40px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="color: #000000;"> </span></p>
|
||
</td>
|
||
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">这个标签用于查询模式来获取该连接的目标picker对象的id。</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">用在创建模式时,并必须同时指定-source标签来指定源picker对象的id。这个标签不能用于编辑模式。</span></p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="targetvalues" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-targetValues</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-tvs</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
|
||
<tr>
|
||
<td style="vertical-align:top; width:40px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="color: #000000;"> </span></p>
|
||
</td>
|
||
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">这个标签用于查询模式来获取该连接的目标属性值,是一个字符窜数组。以决定什么样的值情况下,源picker对象才该被显示。</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">在创建 / 编辑模式,您必须指定一个字符窜数组作为参数,这个字符窜由多个数值用字符"," 连接而成。</span></p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="type" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-type</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-typ</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="color: #000000;"> </span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
|
||
<tr>
|
||
<td style="vertical-align:top; width:40px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="color: #000000;"> </span></p>
|
||
</td>
|
||
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">这个标签只能用于查询模式,用来获取该连接的类别。</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">你不能再编辑一个连接的类型,因为它的连接类似是由目标picker对象决定的。可能的数值有:"parentLink" 或 "attributeLink"。</span></p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="view" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-view</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-v</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="color: #000000;"> </span></p>
|
||
</td>
|
||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
|
||
<tr>
|
||
<td style="vertical-align:top; width:40px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="color: #000000;"> </span></p>
|
||
</td>
|
||
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">控制要查询,编辑或创建在哪个picker视图的连接,在未使用该标签的情况下,默认是在当前激活的picker视图。</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">该标签需要您指定一个picker视图id字符窜。该id可以通过下方式来获取(具体请查询MGPicker命名参考文档):</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;"> MGPicker -q -currentPickerView; // 获取当前所执行的脚本所属于的视图的id,如picker的加载命令和鼠标进入命令。仅脚本执行过程中可获取。</span><span style="font-family: 'Times New Roman',Times,Georgia,serif;"> </span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;"> MGPicker -q -activePickerView; // 获取当前激活视图的id.</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;"> MGPicker -q -findPickerView "pickerNodeOrFileName" 1 "namespace"; // 通过指定picker节点或文件名来查找特定的picker视图id.</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;"> MGPicker -q -listAllPickerViews; // 列出所有打开的picker视图的id.</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;"> MGPicker -e -createTempPicker; // 创建一个临时picker视图并返回其id.</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;"> MGPicker -e -createPicker "pickerName" "namespace" "filePath" "nodeName"; //创建一个picker视图并返回其id.</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;"> MGPicker -e -readPickerNode "nodeName"; // 读取场景picker节点并返回其所打开的picker视图的id.</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;"> MGPicker -e -readScenePicker "nodeName" "pickerName" "namespace" "pickerDataString"; // 读取场景picker节点并返回其所打开的picker视图的id.</span></p>
|
||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;"> MGPicker -e -readPickerFile "pickerFilePath" 1; // 读取picker文件并返回其所打开的picker视图的id.</span></p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<hr style="height:2px; color:#CCCCCC; border-width:0; background-color:#cccccc;" /><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 10px 0 0 0;"><table style="background-color:#eeeeee; border:none; border-spacing:1px;">
|
||
<tr>
|
||
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="create" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="create.gif"/><span class="f_ImageCaption"> </span><span style="font-family: 'Times New Roman',Times,Georgia,serif;">标签可以在创建模式中使用</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="edit" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="edit.gif"/><span class="f_ImageCaption"> </span><span style="font-family: 'Times New Roman',Times,Georgia,serif;">标签可以在编辑模式中使用</span></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="query" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="query.gif"/><span class="f_ImageCaption"> </span><span style="font-family: 'Times New Roman',Times,Georgia,serif;">标签可以在查询模式中使用</span></p>
|
||
</td>
|
||
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="multiuse" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="multiuse.gif"/><span class="f_ImageCaption"> </span><span style="font-family: 'Times New Roman',Times,Georgia,serif;">标签可以在一条命令中多次使用</span></p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<p style="margin: 19px 0 0 0;"><a id="examples" class="hmanchor"></a><span style="font-size: 14pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">MEL例子</span></p>
|
||
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">//You must make sure the picker item: selectButton1, selectButton2, attributeButton1 are alreay in scene in order to test these codes.</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">//link two select-buttons with parent link.</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">//for select-button, the target attribute value flag makes no sense.</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">//you don't want to assign a custom link name here, since it is always sourcePickerItemName>targetPickerItemName. </span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">string $newParentLink = `MGPickerLink -s selectButton1 -t selectButton2`; </span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">print ("The type for the link \""+$newParentLink+"\" is: "+`MGPickerLink -q -type $newParentLink` + ".\n");</span></p>
|
||
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">//link seelct-button to a attribute button, a attribute-link will be created.</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">string $newAttrLink = `MGPickerLink -s "selectButton1" -t "attributeButton1" -targetValues "Green,Red"`;</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">print "The item selectButton1 is linked and controlled by the item attributeButton1 at values: \n";</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">print `MGPickerLink -q -targetValues $newAttrLink`;</span></p>
|
||
<p style="margin: 19px 0 0 0;"><a id="pyexamples" class="hmanchor"></a><span style="font-size: 14pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">Python例子</span></p>
|
||
<p style="margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">from mgpicker import mgp</span></p>
|
||
<p style="margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">#You must make sure the picker item: selectButton1, selectButton2, attributeButton1 are already in scene in order to test these codes.</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">#link two select-buttons with parent link.</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">#for select-button, the target attribute value flag makes no sense.</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">#you don't want to assign a custom link name here, since it is always sourcePickerItemName>targetPickerItemName. </span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">newParentLink = mgp.MGPickerLink(s='selectButton1',t='selectButton2') </span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">print ("The type for the link \""+newParentLink+"\" is: "+ mgp.MGPickerLink(newParentLink, q=True,type=True) + ".\n")</span></p>
|
||
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">#link seelct-button to a attribute button, a attribute-link will be created.</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">newAttrLink = mgp.MGPickerLink(s='selectButton1',t='attributeButton1',targetValues='Green,Red')</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">print ("The item selectButton1 is linked and controlled by the item attributeButton1 at values: \n")</span><br />
|
||
<span style="font-family: 'Courier New',Courier,monospace;">print (mgp.MGPickerLink(newAttrLink,q=True,targetValues=True))</span></p>
|
||
|
||
</td></tr></table>
|
||
<table height="30" width="100%" border="0" cellspacing="" cellpadding="0" bgcolor="#D0D0D0">
|
||
<tr valign="bottom" bgcolor="#D0D0D0" >
|
||
<td align="left" valign="middle" >
|
||
<a href="welcome.htm"><img border="0" src="../common/images/MGtoolsHelp_Home.gif" width="34" height="22" alt="Home" /></a>
|
||
<a href="mgpickeritem.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
|
||
<a href="mgpickermenu.htm"><img border="0" src="../common/images/MGtoolsHelp_next.gif" width="34" height="22" alt="Next" /></a></td>
|
||
</tr>
|
||
</table>
|
||
|
||
</body>
|
||
</html>
|