85 lines
15 KiB
HTML
85 lines
15 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Distribute Pickers in Pipeline</title>
|
|
<meta name="generator" content="Help & Manual" />
|
|
<meta name="keywords" content="distribute picker,pipeline" />
|
|
<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", "distributeinpipeline.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="stylelibrary.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
|
|
<a href="pickertoolintergration.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">
|
|
<p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 13px; margin-left: 0;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:13px;margin-left:-13px">▪</span><span style="font-weight: bold;">MG-Picker Studio searchs 3 Basic paths and any count of other paths for the desired picker:</span></p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 24px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">▪</span><span style="font-weight: bold;">Picker nodes fully inside the Maya scene.</span><br />
|
|
A picker could be stored as a node, which is of Maya's build-in type "subdivSurfaceVarGroup", and usually has a node name ending with a suffix "_MGPIKR";<br />
|
|
The image used by an in-scene picker node will be stored in the Maya scene directory/ pickerimages folder.<br />
|
|
</p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 24px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">▪</span><span style="font-weight: bold;">Picker nodes partially Inside the Maya scene.</span><br />
|
|
From MG-Picker Studio v 1.7, The picker nodes can choose not to contain any picker contents, instead, it contains just a file path attribute, that points to a picker file.</p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 24px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">▪</span>This is the preferable way to distribute your picker since the edit and maintenance of the picker file is separated from your rig Maya scene, yet your picker can be loaded with the clue in the picker node. <br />
|
|
The file path support environment variables denoted by "$" or "${}", as well as 3 predefined variables:</p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 48px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">•</span><span style="font-size: 9pt;">${M_PROJ_DIR}: Current Maya project directory.</span></p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 48px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">•</span><span style="font-size: 9pt;">${MAYA_CURRENT_SCENE_DIR}: Current Maya scene directory.</span></p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 48px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">•</span><span style="font-size: 9pt;">${M_CURRENT_ASSET_DIR}: Current asset Maya scene directory. Say the asset is referenced, it will still give you the asset scene directory instead current Maya scene directory.</span></p><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 24px;"><table style="border:none;border-spacing:0;padding:0;line-height: 1.80;"><tr style="vertical-align:baseline"><td style="border:none;padding:0;width:24px"></td><td style="border:none;padding:0">Examples:</td></tr></table></div><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 48px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">•</span><span style="font-size: 9pt;">$M_PROJ_DIR/picker/pickerName/pickerfile.mgpkr</span></p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 48px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">•</span><span style="font-size: 9pt;">${M_SCENE_DIR}_picker/pickerName/pickerfile.mgpkr</span></p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 48px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">•</span><span style="font-size: 9pt;">D:/workarea/projects/${MyProjectName}/pickerName/pickerfile.mgpkr</span></p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 48px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">•</span><span style="font-size: 9pt;">/path/to/$MyProjectName/$MyPickerName/${MyPickerName}.mgpkr</span><br />
|
|
<span style="font-size: 9pt;"> </span></p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 24px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">▪</span><span style="font-weight: bold;">Maya scene directory/pickers subfolder.</span><br />
|
|
You could publish your picker data and images within the "Maya scene directory/pickers / PickerName" folder and will be auto-searched.<br />
|
|
</p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 24px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">▪</span><span style="font-weight: bold;">Maya user applicaton directory / MG_PickerData / Picker Project.</span><br />
|
|
In Windows, its My Document/maya/MG_PickerData/. Picker data stored within the current project name will be auto-searched.<br />
|
|
</p><p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 24px; margin: 0 0 0 24px;"><span class="f_Normal" style="font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:24px;margin-left:-24px">▪</span><span style="font-weight: bold;">Other paths added in the MG-Picker Studio Preference dialog.</span></p><p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 24px;"><span class="f_Heading1" style="font-size: 9pt; font-weight: normal;"> </span><img alt="lightbulb" width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="lightbulb.png"/><span style="font-size: 9pt;"> </span><span class="f_Heading1" style="font-size: 9pt; font-weight: normal;">These searching paths setting are actually stored in as a file called "SearchingPathConfig.ini" in "maya/version/scripts/MG-PickerStudio/MGPicker_UserConfig" directory.</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 48px;"><span class="f_Heading1" style="font-size: 9pt; font-weight: normal;">Share this file among the pipeline so everybody shares the same searching rule.</span></p>
|
|
<p class="p_Normal" style="text-indent: -24px; line-height: 1.80; margin: 0 0 0 48px;"> </p>
|
|
<p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 13px; margin-left: 0;"><span class="f_Heading1" style="font-size:10pt; font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:13px;margin-left:-13px">▪</span><span class="f_Heading1" style="font-size: 10pt;">How to distribute picker files/nodes in your production pipeline</span></p><p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 24px;">Since now you know the search paths MG-Picker Studio uses to search and load the pickers, you know how to distribute your picker data in the pipeline.</p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 24px;">Notice that only the in-scene picker node could be auto-loadable when a new scene is opened.</p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 24px;">But wait, there are more ways:</p>
|
|
<p class="p_Normal" style="text-indent: -24px; line-height: 1.80; margin: 0 0 0 48px;"><span style="font-weight: bold;">Using programming way, which is the most customizable, but need bit of programming .</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 48px;"><span class="f_Heading1" style="font-size: 9pt; font-weight: normal;">You can define two class inherit from MGP.loader.</span><span class="f_Heading1" style="font-size: 9pt;">MGPickerRigListerBase</span><span class="f_Heading1" style="font-size: 9pt; font-weight: normal;"> and MGP.loader.</span><span class="f_Heading1" style="font-size: 9pt;">MGPickerLoaderBase</span><span class="f_Heading1" style="font-size: 9pt; font-weight: normal;"> .</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 48px;"><span class="f_Heading1" style="font-size: 9pt; font-weight: normal;">MGPickerRigListerBase is for listing out all the rig asset names in your Maya scene, or a certain category of assets, such as characters, props, etc.</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 48px;"><span class="f_Heading1" style="font-size: 9pt; font-weight: normal;">MGPickerLoaderBase is for returning a picker full path for an asset name, so it can be loaded.</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 48px;"><span class="f_Heading1" style="font-size: 9pt; font-weight: normal;">With these two classes, you enable MG-Picker studio to auto-load pickers for all assets in your Maya scene, and also auto-load pickers for a specific rig based on selection.</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 48px;"><span class="f_Heading1" style="font-size: 9pt; font-weight: normal;">Check out <a href="customeloaderandlister.htm" class="topiclink">here</a> for more information.</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 48px;"> </p>
|
|
<p class="p_Normal" style="text-indent: 0; line-height: 1.80; padding-left: 13px; margin-left: 0;"><span class="f_Heading1" style="font-size:10pt; font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';display:inline-block;width:13px;margin-left:-13px">▪</span><span class="f_Heading1" style="font-size: 10pt;">The Portability of Picker Images:</span></p><p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 24px;"><span class="f_Heading1" style="font-size: 10pt; font-weight: normal;">There are several image properties for picker items, such as background image for the panel or group, item image for select-button, command-button and slider handle, and menu icons.</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 24px;"><span class="f_Heading1" style="font-size: 10pt; font-weight: normal;">MG-Picker Studio will try its best to set all these image paths to be relative, by copying the image to the same directory the picker file stays, or the "asset Maya file directory/pickerimages" folder when it is a picker node.In the same way, for a relative image path, MG-Picker Studio will try to solve the relative image path to the absolute path in the background by searching the image in the picker file directory or the "asset Maya file directory/pickerimages" directory.With that being said, if it is a picker file, the folder that contains the file should also contain the picker images it uses,</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 24px;"><span class="f_Heading1" style="font-size: 10pt; font-weight: normal;">if it is a picker node, there must be a folder called "pickerimages" beside the Maya scene file. When the asset is referenced, MG-Picker Studio will still try to find the image in the asset file "directory/pickerimages" folder.</span><br />
|
|
<span class="f_Heading1" style="font-size: 10pt; font-weight: normal;"> </span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 24px;"><img alt="lightbulb" width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="lightbulb.png"/><span style="font-size: 9pt;"> If a picker node has been opened, and you assigned some images to it, then at the moment these paths will remain absolute path.</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 24px;"><span style="font-size: 9pt;">To copy these images to the proper folder and convert these paths to be relative, go to "Picker menu / Process images To Relative Path..".</span></p>
|
|
<p class="p_Normal" style="line-height: 1.80; margin: 0 0 0 24px;"><img alt="lightbulb" width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="lightbulb.png"/><span style="font-size: 9pt;"> V1 take SVG vector image as bitmap. Starting in V2, it will render SVG as vector image.</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="stylelibrary.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
|
|
<a href="pickertoolintergration.htm"><img border="0" src="../common/images/MGtoolsHelp_next.gif" width="34" height="22" alt="Next" /></a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</body>
|
|
</html>
|