Lines Matching refs:string

24 global string $nw4cExpDialog_c3esLatestVer = "1.4.0";
41 proc ShowError(string $msg)
58 string $val = `getenv "NW4C_MAYA_CUSTOM_UI"`;
77 string $nw4cRoot = `getenv "NW4C_ROOT"`;
80 string $editorPath = ($nw4cRoot + "/tools/3DEditor/NW4C_3DEditor.exe");
96 string $val = `getenv "NW4C_USE_NON_UNIFORM_SCALE"`;
109 find string in array
111 proc int FindStringInArray(string $array[], string $value)
139 load setting from option string
141 proc LoadSettingFromOptionString(int $version, string $opts)
167 global string $nw4cExpDialog_SettingExportOptions;
178 string $node = "nw4cExpDialog_Setting1";
187 string $cmd = `getAttr ($node + ".b")`;
194 string $opts = $nw4cExpDialog_SettingExportOptions;
228 string $nodes[] = `ls -typ script`;
229 string $node;
259 proc string GetSettingNodeCommand()
261 string $cmd = "";
270 $cmd += "global string $nw4cExpDialog_SettingExportOptions = \""
301 string $node = "nw4cExpDialog_Setting1";
304 string $selBak[] = `ls -sl`;
317 string $cmd = GetSettingNodeCommand();
318 catch(`setAttr ($node + ".b") -type "string" $cmd`);
325 proc SaveSettingFileFolder(string $filePath)
327 string $settingFolder = substitute("[^/]*$", $filePath, "");
336 string $settingFolder = "";
348 get float string for setting file
350 proc string GetFloatStringForSettingFile(float $val)
352 string $str = $val;
363 global proc nw4cExpDialog_SaveSettingToFileDo(string $filePath)
365 global string $nw4cExpDialog_c3esLatestVer;
369 string $boolNames[2] = { "false", "true" };
384 string $generatorVersion = "?";
396 string $localFolder = getenv("TEMP");
404 string $date = `system "echo %DATE%"`;
407 string $time = `system "echo %TIME%"`;
416 string $processMode = "Single";
417 string $exportTarget = "All";
418 string $outputFileName = "";
419 string $outputMode = "File";
420 string $outputFolder = "";
422 string $mergeCmdlPath = "";
427 string $frameRange = "All";
430 //string $texMatrixMode = "Maya";
445 string $compressNode = "None";
452 string $quantizePos = "Float";
453 string $quantizeNrm = "Float";
454 string $quantizeTex = "Float";
460 string $adjustSkinning = "None";
461 string $meshVisibilityMode = "BindByIndex";
479 string $optStr = "";
487 string $opts[], $words[];
494 string $tag = $words[0];
495 string $val = $words[1];
874 global proc nw4cExpDialog_SaveSettingToFileFC(string $filePath, string $fileType)
898 string $c3esPath[] = `fileDialog2 -ds 2
914 get option string from c3es
916 global proc string nw4cExpDialog_GetOptionStringFromC3es(string $filePath)
918 global string $nw4cExpDialog_c3esLatestVer;
921 string $boolNames[2] = { "false", "true" };
925 string $settingsVersion = "";
927 string $processMode = "Single";
928 string $exportTarget = "All";
929 string $outputFileName = "";
930 string $outputMode = "File";
931 string $outputFolder = "";
933 string $mergeCmdlPath = "";
938 string $frameRange = "All";
941 //string $texMatrixMode = "Maya";
956 string $compressNode = "None";
963 string $quantizePos = "Float";
964 string $quantizeNrm = "Float";
965 string $quantizeTex = "Float";
971 string $adjustSkinning = "None";
972 string $meshVisibilityMode = "IndexMode";
998 string $line = fgetline($fid);
1007 string $words[];
1010 string $line = fgetline($fid);
1023 string $tag = $words[0];
1024 string $val = $words[1];
1302 string $optStr = "";
1375 global proc nw4cExpDialog_LoadSettingFromFileDo(string $filePath)
1378 // get option string from c3es
1404 global proc nw4cExpDialog_LoadSettingFromFileFC(string $filePath, string $fileType)
1429 string $settingFolder = "";
1435 string $filePath;
1438 string $paths[] = `fileDialog2 -fm 1 -ds 2
1447 string $dirMask = "*.c3es"; // fileDialog can use mask
1496 string $selectionStr = (!$animRangeFlag) ?
1528 string $xforms[] = `ls -l -sl -typ transform`;
1539 string $name, $buf[];
1559 global proc nw4cExpDialog_OutFolderBrowserFC(string $filePath, string $fileType)
1579 string $curPath = `textField -q -tx nw4cExpDialog_MergeCmdlPath`;
1585 string $newPath;
1588 string $paths[] =
1773 global proc nw4cExpDialog_ToleranceSRTCB(string $field)
1785 global proc nw4cExpDialog_ToleranceColorCB(string $field)
1831 string $optStr =
1919 string $optStr = `optionVar -q nw4cExport_Options`;
1922 string $optList[];
1927 string $words[];
2331 string $outputFileName = `textFieldGrp -q -tx nw4cExpDialog_OutFileName`;
2351 string $outputFolder = `textFieldGrp -q -tx nw4cExpDialog_OutFolder`;
2366 string $mergeCmdlPath = `textField -q -tx nw4cExpDialog_MergeCmdlPath`;
2387 string $optStr = "", $path;
2389 string $boolNames[2] = { "false", "true" };
2394 string $processModeNames[] = { "Single", "AnimationRange" };
2398 string $exportTargetNames[] = { "All", "Selection" };
2408 string $outputTargetNames[] = { "File", "CreativeStudio", "3DEditor" };
2429 string $frameRangeNames[] = { "All", "Playback", "Range" };
2439 // string $texMatrixModeNames[] = { "Maya", "3dsMax" };
2483 string $compressNodeNames[] = {
2505 string $quantPosNames[] = { "Float", "Short", "Byte", "Auto" };
2509 string $quantNrmNames[] = { "Float", "Short", "Byte", "Auto" };
2513 string $quantTexNames[] = { "Float", "Short", "Byte", "Auto" };
2531 string $adjustSkinningNames[] = {
2535 string $meshVisibilityModeNames[] = {
2632 string $optStr = "";
2640 string $cmd = "NW4C_ExportCmd ";
2701 string $node = "nw4cExpDialog_Setting1";
2715 proc CreateSettingMenu(string $parent)
2719 global string $gOptionBox;
2768 proc int IsNoCompressNode(string $node)
2777 proc int IsSceneAnimObject(string $node)
2779 string $type = nodeType($node);
2780 string $childs[] = `listRelatives -pa -s $node`;
2792 proc int IsConstraintNode(string $node)
2800 proc int IsNeedlessLocatorOrGroup(string $node)
2804 string $childs[] = `listRelatives -pa -ni $node`;
2811 string $childType = nodeType($childs[0]);
2824 proc int IsBlendShapeTarget(string $node)
2826 string $shapes[] = `listRelatives -pa -ni -s $node`;
2829 string $cons[] = `listConnections -s 0 -d 1 ($shapes[0] + ".worldMesh")`;
2841 proc int IsAnimRangeControlNode(string $node)
2849 proc int IsEffectiveNode(string $node)
2856 string $type = nodeType($node);
2887 proc RemoveNoOutputChild(string $xforms[], string $noOutputs[])
2889 string $dsts[];
2912 proc GetAnimRangeTargetNodes(string $xforms[])
2914 string $roots[];
2915 string $sels[] = `ls -l -sl -typ transform`;
2918 string $root = match("|[^|]+", $sel);
2927 proc GetNodeParentList(string $list[], string $node)
2933 string $parents[] = `listRelatives -pa -p $node`;
2945 proc int IsAttrAnimated(string $plug)
2947 string $ins[] = `listConnections -s 1 -d 0 $plug`;
2950 string $hists[] = `listHistory $ins[0]`;
2962 proc int IsXformNodeAnimated(string $xform, int $depth)
2964 string $attrs[] = { "tx", "ty", "tz", "rx", "ry", "rz", "sx", "sy", "sz" };
2965 string $compAttrs[] = { "t", "r", "s" };
2977 string $checkedCons[];
2980 string $plug = $xform + "." + $attr;
2981 string $ins[] = `listConnections -s 1 -d 0 $plug`;
2984 string $inNode = $ins[0];
2985 string $inType = nodeType($inNode);
2986 string $hists[];
3012 string $cons[] = `ls -typ constraint $hists`;
3016 string $con = $cons[0];
3019 string $targets[] =
3027 string $list[];
3048 string $plug = $xform + "." + $attr;
3049 string $ins[] = `listConnections -s 1 -d 0 $plug`;
3052 string $inNode = $ins[0];
3072 proc int IsPoleVectorAnimated(string $ik)
3074 string $attrs[] = { "pvx", "pvy", "pvz" };
3076 string $checkedCons[];
3079 string $plug = $ik + "." + $attr;
3080 string $ins[] = `listConnections -s 1 -d 0 $plug`;
3083 string $inNode = $ins[0];
3084 //string $hists[] = `listHistory $inNode`;
3085 string $hists[] = `listHistory $plug`;
3094 string $con = $inNode;
3097 string $targets[] =
3105 string $list[];
3128 proc int DoesIkControlledXformExist(string $xforms[], string $ik)
3130 string $sjs[] = `listConnections -s 1 -d 0 ($ik + ".startJoint")`;
3131 string $efs[] = `listConnections -s 1 -d 0 ($ik + ".endEffector")`;
3134 string $node = $efs[0];
3137 string $parents[] = `listRelatives -pa -p $node`;
3155 proc int DoesCharaAnimExist(string $xforms[])
3176 string $iks[] = `ls -typ ikHandle`;
3195 proc int DoesVisAnimExist(string $xforms[], string $meshs[])
3219 proc string GetFirstFileNode(string $plug)
3221 string $ins[] = `listConnections -s 1 -d 0 $plug`;
3224 string $file = $ins[0];
3245 proc int DoesColorAnimExist(string $mats[])
3247 string $attrs[] = { "cr", "cg", "cb", "itr", "acr", "acg", "acb", "sr", "sg", "sb" };
3248 string $colorGains[] = { "cgr", "cgg", "cgb" };
3268 string $file = GetFirstFileNode($mat + ".c");
3282 string $file = GetFirstFileNode($mat + ".it");
3298 proc int DoesTexPatAnimExist(string $files[])
3308 //string $ins[] = `listConnections -s 1 -d 0 ($file + ".fe")`;
3311 // string $hists[] = `listHistory $ins[0]`;
3326 proc int DoesTexSrtAnimExist(string $files[])
3328 string $attrs[] = { "tfu", "tfv", "rf", "reu", "rev" };
3332 string $ins[] = `listConnections -s 1 -d 0 -type place2dTexture ($file + ".uv")`;
3335 string $place = $ins[0];
3352 proc int DoesShapeAnimExist(string $meshs[])
3361 string $ins[] = `listConnections -s 1 -d 0 ($mesh + ".i")`;
3364 string $hists[] = `listHistory $ins[0]`;
3365 string $bss[] = `ls -typ blendShape $hists`;
3382 proc GetFileNodeForAttr(string $files[], string $plug)
3384 string $ins[] = `listConnections -s 1 -d 0 $plug`;
3387 string $hists[] = `listHistory $ins[0]`;
3388 string $fins[] = `ls -typ file $hists`;
3416 string $tarXforms[];
3432 string $xforms[];
3433 string $noOutputs[];
3465 string $meshs[];
3468 string $shapes[] = `listRelatives -pa -ni -s $xform`;
3478 string $mats[];
3479 string $files[];
3482 string $sgs[] = `listSets -t 1 -o $mesh`;
3485 string $ins[] = `listConnections -s 1 -d 0 -type lambert ($sg + ".ss")`;
3488 string $mat = $ins[0];
3543 string $optionBox = getOptionBox();
3565 string $parent = `columnLayout -adj 1 -cat "both" 5 -co "both" 5
3573 string $outForm = `formLayout -nd 100`;
3578 string $sep1 = `separator -vis 1 -st "in" -h 3`;
3594 string $sep2 = `separator -st "in" -h 3`;
3627 string $sep3 = `separator -st "in" -h 3`;
3861 string $form = `formLayout`;
4126 string $form = `formLayout -h 75`;
4219 string $applyBtn = getOptionBoxApplyBtn();
4222 string $saveBtn = getOptionBoxSaveBtn();
4225 string $resetBtn = getOptionBoxResetBtn();
4228 string $helpMenu = getOptionBoxHelpItem();