Lines Matching refs:string

25 global string $nw4cExpDialog_c3esLatestVer = "1.2.0";
42 proc ShowError(string $msg)
59 string $val = `getenv "NW4C_MAYA_CUSTOM_UI"`;
68 find string in array
70 proc int FindStringInArray(string $array[], string $value)
98 load setting from option string
100 proc LoadSettingFromOptionString(int $version, string $opts)
126 global string $nw4cExpDialog_SettingExportOptions;
137 string $node = "nw4cExpDialog_Setting1";
146 string $cmd = `getAttr ($node + ".b")`;
153 string $opts = $nw4cExpDialog_SettingExportOptions;
187 string $nodes[] = `ls -typ script`;
188 string $node;
218 proc string GetSettingNodeCommand()
220 string $cmd = "";
229 $cmd += "global string $nw4cExpDialog_SettingExportOptions = \""
260 string $node = "nw4cExpDialog_Setting1";
263 string $selBak[] = `ls -sl`;
276 string $cmd = GetSettingNodeCommand();
277 catch(`setAttr ($node + ".b") -type "string" $cmd`);
284 proc SaveSettingFileFolder(string $filePath)
286 string $settingFolder = substitute("[^/]*$", $filePath, "");
295 string $settingFolder = "";
307 get float string for setting file
309 proc string GetFloatStringForSettingFile(float $val)
311 string $str = $val;
322 global proc nw4cExpDialog_SaveSettingToFileDo(string $filePath)
324 global string $nw4cExpDialog_c3esLatestVer;
326 string $boolNames[2] = { "false", "true" };
341 string $generatorVersion = "?";
353 string $localFolder = getenv("TEMP");
361 string $date = `system "echo %DATE%"`;
364 string $time = `system "echo %TIME%"`;
373 string $processMode = "Single";
374 string $exportTarget = "All";
375 string $outputFileName = "";
376 string $outputMode = "File";
377 string $outputFolder = "";
379 string $mergeCmdlPath = "";
383 string $frameRange = "All";
386 //string $texMatrixMode = "Maya";
401 string $compressNode = "None";
408 string $quantizePos = "Float";
409 string $quantizeNrm = "Float";
410 string $quantizeTex = "Float";
416 string $adjustSkinning = "None";
417 string $meshVisibilityMode = "BindByIndex";
436 string $optStr = "";
444 string $opts[], $words[];
451 string $tag = $words[0];
452 string $val = $words[1];
828 global proc nw4cExpDialog_SaveSettingToFileFC(string $filePath, string $fileType)
856 get option string from c3es
858 global proc string nw4cExpDialog_GetOptionStringFromC3es(string $filePath)
860 global string $nw4cExpDialog_c3esLatestVer;
862 string $boolNames[2] = { "false", "true" };
866 string $settingsVersion = "";
868 string $processMode = "Single";
869 string $exportTarget = "All";
870 string $outputFileName = "";
871 string $outputMode = "File";
872 string $outputFolder = "";
874 string $mergeCmdlPath = "";
878 string $frameRange = "All";
881 //string $texMatrixMode = "Maya";
896 string $compressNode = "None";
903 string $quantizePos = "Float";
904 string $quantizeNrm = "Float";
905 string $quantizeTex = "Float";
911 string $adjustSkinning = "None";
912 string $meshVisibilityMode = "IndexMode";
939 string $line = fgetline($fid);
948 string $words[];
951 string $line = fgetline($fid);
964 string $tag = $words[0];
965 string $val = $words[1];
1238 string $optStr = "";
1308 global proc nw4cExpDialog_LoadSettingFromFileDo(string $filePath)
1311 // get option string from c3es
1337 global proc nw4cExpDialog_LoadSettingFromFileFC(string $filePath, string $fileType)
1362 string $dirMask = "*.c3es"; // fileDialog can use mask
1363 string $settingFolder = "";
1374 string $filePath = `fileDialog -dm $dirMask`;
1422 string $selectionStr = (!$animRangeFlag) ?
1453 string $xforms[] = `ls -l -sl -typ transform`;
1464 string $name, $buf[];
1484 global proc nw4cExpDialog_OutFolderBrowserFC(string $filePath, string $fileType)
1504 string $curPath = `textField -q -tx nw4cExpDialog_MergeCmdlPath`;
1510 string $newPath = `fileDialog -dm ($curPath + "*.cmdl")`;
1684 global proc nw4cExpDialog_ToleranceSRTCB(string $field)
1696 global proc nw4cExpDialog_ToleranceColorCB(string $field)
1740 string $optStr =
1816 string $optStr = `optionVar -q nw4cExport_Options`;
1819 string $optList[];
1824 string $words[];
2220 string $outputFileName = `textFieldGrp -q -tx nw4cExpDialog_OutFileName`;
2235 string $outputFolder = `textFieldGrp -q -tx nw4cExpDialog_OutFolder`;
2249 string $mergeCmdlPath = `textField -q -tx nw4cExpDialog_MergeCmdlPath`;
2268 string $optStr = "", $path;
2270 string $boolNames[2] = { "false", "true" };
2275 string $processModeNames[] = { "Single", "AnimationRange" };
2279 string $exportTargetNames[] = { "All", "Selection" };
2285 string $outputTargetNames[] = { "File", "CreativeStudio" };
2304 string $frameRangeNames[] = { "All", "Playback", "Range" };
2314 // string $texMatrixModeNames[] = { "Maya", "3dsMax" };
2368 string $compressNodeNames[] = {
2390 string $quantPosNames[] = { "Float", "Short", "Byte", "Auto" };
2394 string $quantNrmNames[] = { "Float", "Short", "Byte", "Auto" };
2398 string $quantTexNames[] = { "Float", "Short", "Byte", "Auto" };
2416 string $adjustSkinningNames[] = {
2420 string $meshVisibilityModeNames[] = {
2517 string $optStr = "";
2525 string $cmd = "NW4C_ExportCmd ";
2586 string $node = "nw4cExpDialog_Setting1";
2600 proc CreateSettingMenu(string $parent)
2604 global string $gOptionBox;
2653 proc int IsNoCompressNode(string $node)
2662 proc int IsSceneAnimObject(string $node)
2664 string $type = nodeType($node);
2665 string $childs[] = `listRelatives -pa -s $node`;
2677 proc int IsConstraintNode(string $node)
2685 proc int IsNeedlessLocatorOrGroup(string $node)
2689 string $childs[] = `listRelatives -pa -ni $node`;
2696 string $childType = nodeType($childs[0]);
2709 proc int IsBlendShapeTarget(string $node)
2711 string $shapes[] = `listRelatives -pa -ni -s $node`;
2714 string $cons[] = `listConnections -s 0 -d 1 ($shapes[0] + ".worldMesh")`;
2726 proc int IsAnimRangeControlNode(string $node)
2734 proc int IsEffectiveNode(string $node)
2741 string $type = nodeType($node);
2772 proc RemoveNoOutputChild(string $xforms[], string $noOutputs[])
2774 string $dsts[];
2797 proc GetAnimRangeTargetNodes(string $xforms[])
2799 string $roots[];
2800 string $sels[] = `ls -l -sl -typ transform`;
2803 string $root = match("|[^|]+", $sel);
2812 proc GetNodeParentList(string $list[], string $node)
2818 string $parents[] = `listRelatives -pa -p $node`;
2830 proc int IsAttrAnimated(string $plug)
2832 string $ins[] = `listConnections -s 1 -d 0 $plug`;
2835 string $hists[] = `listHistory $ins[0]`;
2847 proc int IsXformNodeAnimated(string $xform, int $depth)
2849 string $attrs[] = { "tx", "ty", "tz", "rx", "ry", "rz", "sx", "sy", "sz" };
2850 string $compAttrs[] = { "t", "r", "s" };
2862 string $checkedCons[];
2865 string $plug = $xform + "." + $attr;
2866 string $ins[] = `listConnections -s 1 -d 0 $plug`;
2869 string $inNode = $ins[0];
2870 string $inType = nodeType($inNode);
2871 string $hists[];
2897 string $cons[] = `ls -typ constraint $hists`;
2901 string $con = $cons[0];
2904 string $targets[] =
2912 string $list[];
2933 string $plug = $xform + "." + $attr;
2934 string $ins[] = `listConnections -s 1 -d 0 $plug`;
2937 string $inNode = $ins[0];
2957 proc int IsPoleVectorAnimated(string $ik)
2959 string $attrs[] = { "pvx", "pvy", "pvz" };
2961 string $checkedCons[];
2964 string $plug = $ik + "." + $attr;
2965 string $ins[] = `listConnections -s 1 -d 0 $plug`;
2968 string $inNode = $ins[0];
2969 //string $hists[] = `listHistory $inNode`;
2970 string $hists[] = `listHistory $plug`;
2979 string $con = $inNode;
2982 string $targets[] =
2990 string $list[];
3013 proc int DoesIkControlledXformExist(string $xforms[], string $ik)
3015 string $sjs[] = `listConnections -s 1 -d 0 ($ik + ".startJoint")`;
3016 string $efs[] = `listConnections -s 1 -d 0 ($ik + ".endEffector")`;
3019 string $node = $efs[0];
3022 string $parents[] = `listRelatives -pa -p $node`;
3040 proc int DoesCharaAnimExist(string $xforms[])
3061 string $iks[] = `ls -typ ikHandle`;
3080 proc int DoesVisAnimExist(string $xforms[], string $meshs[])
3104 proc string GetFirstFileNode(string $plug)
3106 string $ins[] = `listConnections -s 1 -d 0 $plug`;
3109 string $file = $ins[0];
3130 proc int DoesColorAnimExist(string $mats[])
3132 string $attrs[] = { "cr", "cg", "cb", "itr", "acr", "acg", "acb", "sr", "sg", "sb" };
3133 string $colorGains[] = { "cgr", "cgg", "cgb" };
3153 string $file = GetFirstFileNode($mat + ".c");
3167 string $file = GetFirstFileNode($mat + ".it");
3183 proc int DoesTexPatAnimExist(string $files[])
3193 //string $ins[] = `listConnections -s 1 -d 0 ($file + ".fe")`;
3196 // string $hists[] = `listHistory $ins[0]`;
3211 proc int DoesTexSrtAnimExist(string $files[])
3213 string $attrs[] = { "tfu", "tfv", "rf", "reu", "rev" };
3217 string $ins[] = `listConnections -s 1 -d 0 -type place2dTexture ($file + ".uv")`;
3220 string $place = $ins[0];
3237 proc int DoesShapeAnimExist(string $meshs[])
3246 string $ins[] = `listConnections -s 1 -d 0 ($mesh + ".i")`;
3249 string $hists[] = `listHistory $ins[0]`;
3250 string $bss[] = `ls -typ blendShape $hists`;
3267 proc GetFileNodeForAttr(string $files[], string $plug)
3269 string $ins[] = `listConnections -s 1 -d 0 $plug`;
3272 string $hists[] = `listHistory $ins[0]`;
3273 string $fins[] = `ls -typ file $hists`;
3301 string $tarXforms[];
3317 string $xforms[];
3318 string $noOutputs[];
3350 string $meshs[];
3353 string $shapes[] = `listRelatives -pa -ni -s $xform`;
3363 string $mats[];
3364 string $files[];
3367 string $sgs[] = `listSets -t 1 -o $mesh`;
3370 string $ins[] = `listConnections -s 1 -d 0 -type lambert ($sg + ".ss")`;
3373 string $mat = $ins[0];
3421 string $optionBox = getOptionBox();
3443 string $parent = `columnLayout -adj 1 -cat "both" 5 -co "both" 5
3451 string $outForm = `formLayout -nd 100`;
3456 string $sep1 = `separator -vis 1 -st "in" -h 3`;
3472 string $sep2 = `separator -st "in" -h 3`;
3494 string $sep3 = `separator -st "in" -h 3`;
3626 string $form = `formLayout`;
3935 string $form = `formLayout -h 75`;
4028 string $applyBtn = getOptionBoxApplyBtn();
4031 string $saveBtn = getOptionBoxSaveBtn();
4034 string $resetBtn = getOptionBoxResetBtn();
4037 string $helpMenu = getOptionBoxHelpItem();