Lines Matching refs:string

25 global string $nw4cExpDialog_c3esLatestVer = "1.3.0";
42 proc ShowError(string $msg)
59 string $val = `getenv "NW4C_MAYA_CUSTOM_UI"`;
78 string $nw4cRoot = `getenv "NW4C_ROOT"`;
81 string $editorPath = ($nw4cRoot + "/tools/3DEditor/3DEditor.exe");
91 find string in array
93 proc int FindStringInArray(string $array[], string $value)
121 load setting from option string
123 proc LoadSettingFromOptionString(int $version, string $opts)
149 global string $nw4cExpDialog_SettingExportOptions;
160 string $node = "nw4cExpDialog_Setting1";
169 string $cmd = `getAttr ($node + ".b")`;
176 string $opts = $nw4cExpDialog_SettingExportOptions;
210 string $nodes[] = `ls -typ script`;
211 string $node;
241 proc string GetSettingNodeCommand()
243 string $cmd = "";
252 $cmd += "global string $nw4cExpDialog_SettingExportOptions = \""
283 string $node = "nw4cExpDialog_Setting1";
286 string $selBak[] = `ls -sl`;
299 string $cmd = GetSettingNodeCommand();
300 catch(`setAttr ($node + ".b") -type "string" $cmd`);
307 proc SaveSettingFileFolder(string $filePath)
309 string $settingFolder = substitute("[^/]*$", $filePath, "");
318 string $settingFolder = "";
330 get float string for setting file
332 proc string GetFloatStringForSettingFile(float $val)
334 string $str = $val;
345 global proc nw4cExpDialog_SaveSettingToFileDo(string $filePath)
347 global string $nw4cExpDialog_c3esLatestVer;
349 string $boolNames[2] = { "false", "true" };
364 string $generatorVersion = "?";
376 string $localFolder = getenv("TEMP");
384 string $date = `system "echo %DATE%"`;
387 string $time = `system "echo %TIME%"`;
396 string $processMode = "Single";
397 string $exportTarget = "All";
398 string $outputFileName = "";
399 string $outputMode = "File";
400 string $outputFolder = "";
402 string $mergeCmdlPath = "";
407 string $frameRange = "All";
410 //string $texMatrixMode = "Maya";
425 string $compressNode = "None";
432 string $quantizePos = "Float";
433 string $quantizeNrm = "Float";
434 string $quantizeTex = "Float";
440 string $adjustSkinning = "None";
441 string $meshVisibilityMode = "BindByIndex";
459 string $optStr = "";
467 string $opts[], $words[];
474 string $tag = $words[0];
475 string $val = $words[1];
851 global proc nw4cExpDialog_SaveSettingToFileFC(string $filePath, string $fileType)
879 get option string from c3es
881 global proc string nw4cExpDialog_GetOptionStringFromC3es(string $filePath)
883 global string $nw4cExpDialog_c3esLatestVer;
885 string $boolNames[2] = { "false", "true" };
889 string $settingsVersion = "";
891 string $processMode = "Single";
892 string $exportTarget = "All";
893 string $outputFileName = "";
894 string $outputMode = "File";
895 string $outputFolder = "";
897 string $mergeCmdlPath = "";
902 string $frameRange = "All";
905 //string $texMatrixMode = "Maya";
920 string $compressNode = "None";
927 string $quantizePos = "Float";
928 string $quantizeNrm = "Float";
929 string $quantizeTex = "Float";
935 string $adjustSkinning = "None";
936 string $meshVisibilityMode = "IndexMode";
962 string $line = fgetline($fid);
971 string $words[];
974 string $line = fgetline($fid);
987 string $tag = $words[0];
988 string $val = $words[1];
1266 string $optStr = "";
1336 global proc nw4cExpDialog_LoadSettingFromFileDo(string $filePath)
1339 // get option string from c3es
1365 global proc nw4cExpDialog_LoadSettingFromFileFC(string $filePath, string $fileType)
1390 string $dirMask = "*.c3es"; // fileDialog can use mask
1391 string $settingFolder = "";
1402 string $filePath = `fileDialog -dm $dirMask`;
1450 string $selectionStr = (!$animRangeFlag) ?
1482 string $xforms[] = `ls -l -sl -typ transform`;
1493 string $name, $buf[];
1513 global proc nw4cExpDialog_OutFolderBrowserFC(string $filePath, string $fileType)
1533 string $curPath = `textField -q -tx nw4cExpDialog_MergeCmdlPath`;
1539 string $newPath = `fileDialog -dm ($curPath + "*.cmdl")`;
1711 global proc nw4cExpDialog_ToleranceSRTCB(string $field)
1723 global proc nw4cExpDialog_ToleranceColorCB(string $field)
1767 string $optStr =
1846 string $optStr = `optionVar -q nw4cExport_Options`;
1849 string $optList[];
1854 string $words[];
2264 string $outputFileName = `textFieldGrp -q -tx nw4cExpDialog_OutFileName`;
2284 string $outputFolder = `textFieldGrp -q -tx nw4cExpDialog_OutFolder`;
2298 string $mergeCmdlPath = `textField -q -tx nw4cExpDialog_MergeCmdlPath`;
2318 string $optStr = "", $path;
2320 string $boolNames[2] = { "false", "true" };
2325 string $processModeNames[] = { "Single", "AnimationRange" };
2329 string $exportTargetNames[] = { "All", "Selection" };
2339 string $outputTargetNames[] = { "File", "CreativeStudio", "3DEditor" };
2360 string $frameRangeNames[] = { "All", "Playback", "Range" };
2370 // string $texMatrixModeNames[] = { "Maya", "3dsMax" };
2424 string $compressNodeNames[] = {
2446 string $quantPosNames[] = { "Float", "Short", "Byte", "Auto" };
2450 string $quantNrmNames[] = { "Float", "Short", "Byte", "Auto" };
2454 string $quantTexNames[] = { "Float", "Short", "Byte", "Auto" };
2472 string $adjustSkinningNames[] = {
2476 string $meshVisibilityModeNames[] = {
2570 string $optStr = "";
2578 string $cmd = "NW4C_ExportCmd ";
2639 string $node = "nw4cExpDialog_Setting1";
2653 proc CreateSettingMenu(string $parent)
2657 global string $gOptionBox;
2706 proc int IsNoCompressNode(string $node)
2715 proc int IsSceneAnimObject(string $node)
2717 string $type = nodeType($node);
2718 string $childs[] = `listRelatives -pa -s $node`;
2730 proc int IsConstraintNode(string $node)
2738 proc int IsNeedlessLocatorOrGroup(string $node)
2742 string $childs[] = `listRelatives -pa -ni $node`;
2749 string $childType = nodeType($childs[0]);
2762 proc int IsBlendShapeTarget(string $node)
2764 string $shapes[] = `listRelatives -pa -ni -s $node`;
2767 string $cons[] = `listConnections -s 0 -d 1 ($shapes[0] + ".worldMesh")`;
2779 proc int IsAnimRangeControlNode(string $node)
2787 proc int IsEffectiveNode(string $node)
2794 string $type = nodeType($node);
2825 proc RemoveNoOutputChild(string $xforms[], string $noOutputs[])
2827 string $dsts[];
2850 proc GetAnimRangeTargetNodes(string $xforms[])
2852 string $roots[];
2853 string $sels[] = `ls -l -sl -typ transform`;
2856 string $root = match("|[^|]+", $sel);
2865 proc GetNodeParentList(string $list[], string $node)
2871 string $parents[] = `listRelatives -pa -p $node`;
2883 proc int IsAttrAnimated(string $plug)
2885 string $ins[] = `listConnections -s 1 -d 0 $plug`;
2888 string $hists[] = `listHistory $ins[0]`;
2900 proc int IsXformNodeAnimated(string $xform, int $depth)
2902 string $attrs[] = { "tx", "ty", "tz", "rx", "ry", "rz", "sx", "sy", "sz" };
2903 string $compAttrs[] = { "t", "r", "s" };
2915 string $checkedCons[];
2918 string $plug = $xform + "." + $attr;
2919 string $ins[] = `listConnections -s 1 -d 0 $plug`;
2922 string $inNode = $ins[0];
2923 string $inType = nodeType($inNode);
2924 string $hists[];
2950 string $cons[] = `ls -typ constraint $hists`;
2954 string $con = $cons[0];
2957 string $targets[] =
2965 string $list[];
2986 string $plug = $xform + "." + $attr;
2987 string $ins[] = `listConnections -s 1 -d 0 $plug`;
2990 string $inNode = $ins[0];
3010 proc int IsPoleVectorAnimated(string $ik)
3012 string $attrs[] = { "pvx", "pvy", "pvz" };
3014 string $checkedCons[];
3017 string $plug = $ik + "." + $attr;
3018 string $ins[] = `listConnections -s 1 -d 0 $plug`;
3021 string $inNode = $ins[0];
3022 //string $hists[] = `listHistory $inNode`;
3023 string $hists[] = `listHistory $plug`;
3032 string $con = $inNode;
3035 string $targets[] =
3043 string $list[];
3066 proc int DoesIkControlledXformExist(string $xforms[], string $ik)
3068 string $sjs[] = `listConnections -s 1 -d 0 ($ik + ".startJoint")`;
3069 string $efs[] = `listConnections -s 1 -d 0 ($ik + ".endEffector")`;
3072 string $node = $efs[0];
3075 string $parents[] = `listRelatives -pa -p $node`;
3093 proc int DoesCharaAnimExist(string $xforms[])
3114 string $iks[] = `ls -typ ikHandle`;
3133 proc int DoesVisAnimExist(string $xforms[], string $meshs[])
3157 proc string GetFirstFileNode(string $plug)
3159 string $ins[] = `listConnections -s 1 -d 0 $plug`;
3162 string $file = $ins[0];
3183 proc int DoesColorAnimExist(string $mats[])
3185 string $attrs[] = { "cr", "cg", "cb", "itr", "acr", "acg", "acb", "sr", "sg", "sb" };
3186 string $colorGains[] = { "cgr", "cgg", "cgb" };
3206 string $file = GetFirstFileNode($mat + ".c");
3220 string $file = GetFirstFileNode($mat + ".it");
3236 proc int DoesTexPatAnimExist(string $files[])
3246 //string $ins[] = `listConnections -s 1 -d 0 ($file + ".fe")`;
3249 // string $hists[] = `listHistory $ins[0]`;
3264 proc int DoesTexSrtAnimExist(string $files[])
3266 string $attrs[] = { "tfu", "tfv", "rf", "reu", "rev" };
3270 string $ins[] = `listConnections -s 1 -d 0 -type place2dTexture ($file + ".uv")`;
3273 string $place = $ins[0];
3290 proc int DoesShapeAnimExist(string $meshs[])
3299 string $ins[] = `listConnections -s 1 -d 0 ($mesh + ".i")`;
3302 string $hists[] = `listHistory $ins[0]`;
3303 string $bss[] = `ls -typ blendShape $hists`;
3320 proc GetFileNodeForAttr(string $files[], string $plug)
3322 string $ins[] = `listConnections -s 1 -d 0 $plug`;
3325 string $hists[] = `listHistory $ins[0]`;
3326 string $fins[] = `ls -typ file $hists`;
3354 string $tarXforms[];
3370 string $xforms[];
3371 string $noOutputs[];
3403 string $meshs[];
3406 string $shapes[] = `listRelatives -pa -ni -s $xform`;
3416 string $mats[];
3417 string $files[];
3420 string $sgs[] = `listSets -t 1 -o $mesh`;
3423 string $ins[] = `listConnections -s 1 -d 0 -type lambert ($sg + ".ss")`;
3426 string $mat = $ins[0];
3475 string $optionBox = getOptionBox();
3497 string $parent = `columnLayout -adj 1 -cat "both" 5 -co "both" 5
3505 string $outForm = `formLayout -nd 100`;
3510 string $sep1 = `separator -vis 1 -st "in" -h 3`;
3526 string $sep2 = `separator -st "in" -h 3`;
3559 string $sep3 = `separator -st "in" -h 3`;
3790 string $form = `formLayout`;
4096 string $form = `formLayout -h 75`;
4189 string $applyBtn = getOptionBoxApplyBtn();
4192 string $saveBtn = getOptionBoxSaveBtn();
4195 string $resetBtn = getOptionBoxResetBtn();
4198 string $helpMenu = getOptionBoxHelpItem();