Lines Matching refs:node
17 proc int IsSceneAnimObject(string $node)
19 string $type = nodeType($node);
20 string $childs[] = `listRelatives -pa -s $node`;
32 return node size
39 for ($node in $nodes)
41 if (!IsSceneAnimObject($node))
43 $xforms[size($xforms)] = $node;
53 global proc int nw4cSetCombineGroup_Get_UseCombineGroup(string $node)
55 return (`attributeQuery -n $node -ex "nw4cUseCombineGroup"`) ?
56 `getAttr ($node + ".nw4cUseCombineGroup")` : 0;
59 global proc nw4cSetCombineGroup_Add_UseCombineGroup(string $node)
61 if (!`attributeQuery -n $node -ex "nw4cUseCombineGroup"`)
63 addAttr -ln "nw4cUseCombineGroup" -at "bool" -dv 0 -h 1 $node;
67 global proc nw4cSetCombineGroup_Set_UseCombineGroup(string $node, int $val)
69 nw4cSetCombineGroup_Add_UseCombineGroup($node);
70 setAttr ($node + ".nw4cUseCombineGroup") $val;
73 proc SetJob_UseCombineGroup(string $node)
75 if (!`attributeQuery -n $node -ex "nw4cUseCombineGroup"`)
79 scriptJob -p nw4cSetCombineGroup_UseCombineGroup -rp -ac ($node + ".nw4cUseCombineGroup")
80 ("if (`nw4cSetCombineGroup_Get_UseCombineGroup " + $node +
83 …"control -e -en `nw4cSetCombineGroup_Get_UseCombineGroup " + $node + "` nw4cSetCombineGroup_Combin…
96 for ($node in $xforms)
98 nw4cSetCombineGroup_Set_UseCombineGroup($node, $val);
106 global proc int nw4cSetCombineGroup_Get_CombineGroup(string $node)
108 return (`attributeQuery -n $node -ex "nw4cCombineGroup"`) ?
109 `getAttr ($node + ".nw4cCombineGroup")` : 0;
112 global proc nw4cSetCombineGroup_Add_CombineGroup(string $node)
114 if (!`attributeQuery -n $node -ex "nw4cCombineGroup"`)
116 addAttr -ln "nw4cCombineGroup" -at "short" -min 0 -max 255 -dv 0 -h 1 $node;
120 global proc nw4cSetCombineGroup_Set_CombineGroup(string $node, int $val)
122 nw4cSetCombineGroup_Add_CombineGroup($node);
123 setAttr ($node + ".nw4cCombineGroup") $val;
126 proc SetJob_CombineGroup(string $node)
128 if (!`attributeQuery -n $node -ex "nw4cCombineGroup"`)
132 scriptJob -p nw4cSetCombineGroup_CombineGroup -rp -ac ($node + ".nw4cCombineGroup")
134 + $node + "`) nw4cSetCombineGroup_CombineGroup");
154 for ($node in $xforms)
156 nw4cSetCombineGroup_Set_CombineGroup($node, $val);
175 // set node name
202 string $node = $xforms[0];
205 `nw4cSetCombineGroup_Get_UseCombineGroup $node`;
207 -on1 ("nw4cSetCombineGroup_UseCombineGroupCB " + $node)
210 -on1 ("nw4cSetCombineGroup_UseCombineGroupCB " + $node)
213 intField -e -v `nw4cSetCombineGroup_Get_CombineGroup $node`
214 -cc ("nw4cSetCombineGroup_CombineGroupCB " + $node)
219 SetJob_UseCombineGroup($node);
220 SetJob_CombineGroup($node);
235 proc int GetXformHierarchyLevel(string $node)
238 string $longName = `longNameOf($node)`;
385 for ($node in $xforms)
387 if (IsSceneAnimObject($node))
391 int $useCombineGroup = nw4cSetCombineGroup_Get_UseCombineGroup($node);
392 int $CombineGroup = nw4cSetCombineGroup_Get_CombineGroup($node);
427 select -add $node;
438 string $msg = "Found: " + $nodeCount + " transform node";
472 // node name