Update
This commit is contained in:
@@ -0,0 +1,369 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>MGPickerService Command</title>
|
||||
<meta name="generator" content="Help & Manual" />
|
||||
<meta name="keywords" content="API,MGPickerService 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", "mgpickerservice.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="mgsvgimport.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
|
||||
<a href="mgpickerlicence.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;">command</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;">MGPickerService</span></h1>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<p class="p_Normal" style="margin: 14px 0 0 0;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Go to: <a href="mgpickerservice.htm#synopsis" class="topiclink">Synopsis</a>. <a href="mgpickerservice.htm#examples" class="topiclink">MEL examples</a>. <a href="mgpickerservice.htm#pyexamples" class="topiclink">Python examples</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;"> Synopsis</span></p>
|
||||
<p class="p_Normal" style="margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">MGPickerService (string, [<a href="mgpickerservice.htm#cleannamespacemix" class="topiclink">cleanNamespaceMix</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="mgpickerservice.htm#getviewcoordinate" class="topiclink">getViewCoordinate</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">[string, float, float, float]</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgpickerservice.htm#modeleditorsize" class="topiclink">modelEditorSize</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="mgpickerservice.htm#namespacefromselection" class="topiclink">namespaceFromSelection</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="mgpickerservice.htm#namespace" class="topiclink">namespace</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="mgpickerservice.htm#oslanguage" class="topiclink">osLanguage</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="mgpickerservice.htm#resolvepath" class="topiclink">resolvePath</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="mgpickerservice.htm#translate" class="topiclink">translate</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="mgpickerservice.htm#translate1" class="topiclink">translate1</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">[string, string]</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="https://www.helpandmanual.com/order.html" class="topiclink">translate2</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">[string, string, string]</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgpickerservice.htm#unzip" class="topiclink">unzip</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="mgpickerservice.htm#zipfilefolder" class="topiclink">zipFileFolder</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: 0 0 14px 0;"><span style="font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">Note: Strings representing zip full path when used with zip related flags. This is not depicted in the synopsis.</span></p>
|
||||
<p class="p_Normal" style="margin: 0 0 14px 0;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">MGPickerService is </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">NOT undoable</span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">, </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">queryable, and editable.</span></p>
|
||||
<p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This command provide zipping, translation, coordinate mapping services. It is mainly for internal use.</span></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-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">Long name (short name)</span></p>
|
||||
</td>
|
||||
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic; font-weight: bold;">Argument types</span></p>
|
||||
</td>
|
||||
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">Properties</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="cleannamespacemix" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-cleanNamespaceMix</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-cnm</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="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:946px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">Remove the non-namespace head from a dag path, eg.</span></p>
|
||||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">|path|to|myChar:control|myChar:subControl ----> myChar:control|myChar:subControl</span></p>
|
||||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">myChar:control|myChar:subControl will remain the same.</span></p>
|
||||
<p style="line-height: 1.38;"><span style="font-size: 11pt; font-family: 'Times New Roman',Times,Georgia,serif;">myChar:control|myChar:subControl|the|control will remain the same.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="getviewcoordinate" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-getViewCoordinate</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-gvc</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 float float float</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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a query only flag that can be used to query for the view coordinate via the world coordinate.</span></p>
|
||||
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">You need to specify the modelEditor name and the x,y,z world coordinate, the flag will return an int array, first element is 0~1 indicating the point is within the viewport or not, another two elements are x, y view coordinates.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="modeleditorsize" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-modelEditorSize</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-mes</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="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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a query only flag that can be used to query for the size of a modelEditor.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="namespacefromselection" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-namespaceFromSelection</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-nfs</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;">boolean</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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Get the namespace from current selected node, specify True means if first selected node contain no namespace, it will continue to the next selected node, False means it will stop at first selected node anyway.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="namespace" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-namespace</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-ns</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="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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Retrieve the namespace from a node dag path or node name.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="oslanguage" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-osLanguage</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-osl</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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:942px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a query only flag that can be used to query for the language that probably need to be used in your operation system</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="resolvepath" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-resolvePath</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-rp</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 string</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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:942px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Resolve the file path that contains environment variable denoted by $ or ${} to actual file path. </span></p>
|
||||
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">The first argument is the path to resolve, the second argument is the picker node you wanna resolve the file path attribute from, this one is optional, only in case when ${M_CURRENT_ASSET_DIR} is specified in path.</span></p>
|
||||
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Specify empty string if you don't need the second argument.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="translate" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-translate</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-tr</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="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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Internal use only. This is a query only flag that return a translated string for a string 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="translate1" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-translate1</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-tr1</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 string</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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Internal use only. This is a query only flag that return a translated string for a string id and a string replacement.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="translate2" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-translate2</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-tr2</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 string string</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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Internal use only. This is a query only flag that return a translated string for a string id and two string replacements.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="unzip" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-unzip</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-uzp</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" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="create.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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Unzip the zip file to target directory path assigned by the argument.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="zipfilefolder" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-zipFileFolder</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-zip</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" width="13" height="16" style="margin:0;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"><br />
|
||||
</td>
|
||||
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">In query mode this flag returns all the folders and files in a zip file.</span></p>
|
||||
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">In creation mode, this package target file / directory into a zip file.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<p class="p_Normal"> </p>
|
||||
<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-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can appear in Create mode of command</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-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can appear in Edit mode of command</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-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can appear in Query mode of command</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-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can be used more than once in a command.</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 examples</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;">//zip the folder into a zip package:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">MGPickerService -zipFileFolder "D:/test" "D:/test.zip";</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;">//list out the zip package content:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">print "The contents in test.zip:\n";</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">print `MGPickerService -q -zip "D:/test.zip"`;</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;">//unzip to another directory:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">MGPickerService -unzip "D:/test/unzipped/" "D:/test.zip";</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 examples</span></p>
|
||||
<p style="margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">from maya import cmds</span></p>
|
||||
<p style="margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">cmds.MGPickerService("D:/test.zip", zipFileFolder="D:/test")</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;">#list out the zip package content:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">print ("The contents in test.zip:\n")</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">print (cmds.MGPickerService("D:/test.zip", q=True,zip=True))</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;">#unzip to another directory:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">cmds.MGPickerService("D:/test.zip", unzip="D:/test/unzipped/")</span></p>
|
||||
<p style="margin: 19px 0 0 0;"><span style="color: #000000;"> </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="mgsvgimport.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
|
||||
<a href="mgpickerlicence.htm"><img border="0" src="../common/images/MGtoolsHelp_next.gif" width="34" height="22" alt="Next" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user