Lines Matching refs:string

26 proc int GetSelectedSG(string $sgs[])
32 string $mats[] = `ls -sl -mat`;
39 string $connectedSgs[] =
57 global proc int nw4cSetRenderPriority_Get_UseRenderPriority(string $node)
63 global proc nw4cSetRenderPriority_Add_UseRenderPriority(string $node)
71 global proc nw4cSetRenderPriority_Set_UseRenderPriority(string $node, int $val)
77 proc SetJob_UseRenderPriority(string $node)
90 global proc nw4cSetRenderPriority_UseRenderPriorityCB(string $mainNode)
92 string $sgs[];
109 global proc int nw4cSetRenderPriority_Get_RenderPriority(string $node)
115 global proc nw4cSetRenderPriority_Add_RenderPriority(string $node)
123 global proc nw4cSetRenderPriority_Set_RenderPriority(string $node, int $val)
129 proc SetJob_RenderPriority(string $node)
140 global proc nw4cSetRenderPriority_RenderPriorityCB(string $mainNode)
142 string $sgs[];
168 proc int GetPriorityForList(string $sg)
184 proc SetPriorityForList(string $sg, int $val)
199 proc string FindListFieldForButton(string $childs[], string $btn)
201 string $btnS = match("[^|]+$", $btn);
206 string $child = $childs[$isg];
218 proc string GetSGFromListLabel(string $label)
220 string $mat = match("\\(.*\\)", $label);
233 string $childs[] = `layout -q -ca nw4cSetRenderPriority_SGList`;
238 string $btn = $childs[$isg];
239 string $label = `button -q -l $btn`;
240 //string $sg = match("[^ ]+", $label); // sgName ( matName )
241 string $sg = GetSGFromListLabel($label); // matName ( sgName )
249 string $ins[] = `listConnections -s 1 -d 0 ($sg + ".ss")`;
252 string $mat = $ins[0];
255 string $ots[] = `listConnections -s 0 -d 1 ($mat + ".oc")`;
279 global proc nw4cSetRenderPriority_ListButtonCB(string $btn, string $sg)
293 string $ins[] = `listConnections -s 1 -d 0 ($sg + ".ss")`;
317 string $childs[] = `layout -q -ca nw4cSetRenderPriority_SGList`;
318 string $field = FindListFieldForButton($childs, $btn);
328 global proc nw4cSetRenderPriority_ListPriorityCB(string $sg, int $val)
345 global proc string[] nw4cSetRenderPriority_ListDragCB(
346 string $dragControl, int $x, int $y, int $mods)
348 string $msgs[];
358 string $dragControl, string $dropControl, string $msgs[],
373 string $name0 = `button -q -l $dragControl`;
374 string $name1 = `button -q -l $dropControl`;
375 //string $sg0 = match("[^ ]+", $name0); // sgName ( matName )
376 //string $sg1 = match("[^ ]+", $name1); // sgName ( matName )
377 string $sg0 = GetSGFromListLabel($name0); // matName ( sgName )
378 string $sg1 = GetSGFromListLabel($name1); // matName ( sgName )
379 string $pri0 = GetPriorityForList($sg0);
380 string $pri1 = GetPriorityForList($sg1);
396 string $childs[] = `layout -q -ca nw4cSetRenderPriority_SGList`;
397 string $field0 = FindListFieldForButton($childs, $dragControl);
398 string $field1 = FindListFieldForButton($childs, $dropControl);
402 string $parentBak = `setParent -q`;
423 proc SortList(string $sgs[], string $mats[], int $pris[])
433 string $sg0 = $sgs[$isg];
434 string $mat0 = $mats[$isg];
436 string $sg1 = $sgs[$jsg];
437 string $mat1 = $mats[$jsg];
487 string $img = ($nw4cSetRenderPriority_SortOrder) ?
504 string $allSgs[] = `ls -typ shadingEngine`;
511 string $ins[] = `listConnections -s 1 -d 0 ($sg + ".ss")`;
518 string $childs[] = `layout -q -ca nw4cSetRenderPriority_SGList`;
531 string $sgs[], $mats[];
534 string $allSgs[] = `ls -typ shadingEngine`;
541 string $ins[] = `listConnections -s 1 -d 0 ($sg + ".ss")`;
546 string $mat = $ins[0];
561 string $parentBak = `setParent -q`;
563 string $childs[] = `layout -q -ca nw4cSetRenderPriority_SGList`;
580 string $lastBtn;
583 string $btn = $childs[$isg];
584 string $field = $childs[$sgSize + $isg];
618 string $btn = $childs[$isg];
630 string $btn = $childs[$isg];
700 proc string GetSGNameWithMat(string $sg)
702 string $name = "( " + $sg + " )";
703 string $ins[] = `listConnections -s 1 -d 0 ($sg + ".ss")`;
718 string $sgs[];
723 string $nodesName;
749 string $node = $sgs[0];
837 string $sgs[] = `ls -typ shadingEngine`;
881 string $ins[] = `listConnections -s 1 -d 0 ($node + ".ss")`;
897 string $msg = "Found: " + $nodeCount + " shadingEngine node";
960 string $form1 = `formLayout -nd 100`;
987 string $form2 = `formLayout -nd 400`;
1030 string $form3 = `formLayout -nd 400`;
1095 string $labelRow = `rowColumnLayout -nc 4
1111 string $scroll = `scrollLayout -hst 0`;
1148 string $closeCmd = "deleteUI nw4cSetRenderPriority_Win";
1149 string $closeBtn = `button -h 26 -l "Close" -c $closeCmd`;