Lines Matching refs:node

16 proc int IsSceneAnimObject(string $node)
18 string $type = nodeType($node);
19 string $childs[] = `listRelatives -pa -s $node`;
31 return node size
38 for ($node in $nodes)
40 if (!IsSceneAnimObject($node))
42 $xforms[size($xforms)] = $node;
52 global proc int nw4cSetCombineGroup_Get_UseCombineGroup(string $node)
54 return (`attributeQuery -n $node -ex "nw4cUseCombineGroup"`) ?
55 `getAttr ($node + ".nw4cUseCombineGroup")` : 0;
58 global proc nw4cSetCombineGroup_Add_UseCombineGroup(string $node)
60 if (!`attributeQuery -n $node -ex "nw4cUseCombineGroup"`)
62 addAttr -ln "nw4cUseCombineGroup" -at "bool" -dv 0 -h 1 $node;
66 global proc nw4cSetCombineGroup_Set_UseCombineGroup(string $node, int $val)
68 nw4cSetCombineGroup_Add_UseCombineGroup($node);
69 setAttr ($node + ".nw4cUseCombineGroup") $val;
72 proc SetJob_UseCombineGroup(string $node)
74 if (!`attributeQuery -n $node -ex "nw4cUseCombineGroup"`)
78 scriptJob -p nw4cSetCombineGroup_UseCombineGroup -rp -ac ($node + ".nw4cUseCombineGroup")
79 ("if (`nw4cSetCombineGroup_Get_UseCombineGroup " + $node +
82 …"control -e -en `nw4cSetCombineGroup_Get_UseCombineGroup " + $node + "` nw4cSetCombineGroup_Combin…
95 for ($node in $xforms)
97 nw4cSetCombineGroup_Set_UseCombineGroup($node, $val);
105 global proc int nw4cSetCombineGroup_Get_CombineGroup(string $node)
107 return (`attributeQuery -n $node -ex "nw4cCombineGroup"`) ?
108 `getAttr ($node + ".nw4cCombineGroup")` : 0;
111 global proc nw4cSetCombineGroup_Add_CombineGroup(string $node)
113 if (!`attributeQuery -n $node -ex "nw4cCombineGroup"`)
115 addAttr -ln "nw4cCombineGroup" -at "short" -min 0 -max 255 -dv 0 -h 1 $node;
119 global proc nw4cSetCombineGroup_Set_CombineGroup(string $node, int $val)
121 nw4cSetCombineGroup_Add_CombineGroup($node);
122 setAttr ($node + ".nw4cCombineGroup") $val;
125 proc SetJob_CombineGroup(string $node)
127 if (!`attributeQuery -n $node -ex "nw4cCombineGroup"`)
131 scriptJob -p nw4cSetCombineGroup_CombineGroup -rp -ac ($node + ".nw4cCombineGroup")
133 + $node + "`) nw4cSetCombineGroup_CombineGroup");
153 for ($node in $xforms)
155 nw4cSetCombineGroup_Set_CombineGroup($node, $val);
174 // set node name
201 string $node = $xforms[0];
204 `nw4cSetCombineGroup_Get_UseCombineGroup $node`;
206 -on1 ("nw4cSetCombineGroup_UseCombineGroupCB " + $node)
209 -on1 ("nw4cSetCombineGroup_UseCombineGroupCB " + $node)
212 intField -e -v `nw4cSetCombineGroup_Get_CombineGroup $node`
213 -cc ("nw4cSetCombineGroup_CombineGroupCB " + $node)
218 SetJob_UseCombineGroup($node);
219 SetJob_CombineGroup($node);
234 proc int GetXformHierarchyLevel(string $node)
237 string $longName = `longNameOf($node)`;
384 for ($node in $xforms)
386 if (IsSceneAnimObject($node))
390 int $useCombineGroup = nw4cSetCombineGroup_Get_UseCombineGroup($node);
391 int $CombineGroup = nw4cSetCombineGroup_Get_CombineGroup($node);
426 select -add $node;
437 string $msg = "Found: " + $nodeCount + " transform node";
470 // node name