ltethe
09-10-2010, 08:17 PM
So this is just a real basic script to wrap each object selected into a group node.
Problem is that I get:
Group1
-Group2
--Group3
---Group4
----sphere01
----sphere02
----sphere03
----sphere04
When the output I want is:
Group1
-sphere01
Group2
-sphere02
Group3
-sphere03
Group4
-sphere04
string $selectionSet[] = `ls -sl`;
//insert Selection
for($each in $selectionSet){
group;
xform -os -piv 0 0 0;
}
Thanks for the assist all, I'm missing something super basic.
Problem is that I get:
Group1
-Group2
--Group3
---Group4
----sphere01
----sphere02
----sphere03
----sphere04
When the output I want is:
Group1
-sphere01
Group2
-sphere02
Group3
-sphere03
Group4
-sphere04
string $selectionSet[] = `ls -sl`;
//insert Selection
for($each in $selectionSet){
group;
xform -os -piv 0 0 0;
}
Thanks for the assist all, I'm missing something super basic.
