BluesmanI
04-16-2008, 11:26 PM
Hi guys,
i have a little problem. Looks like this.
At first i create objects, throw their names via "ls -sl" in separate arrays.
polyCube -n "testPlate";
string $plates[] = `ls -sl`;
Then i group them and finally give the newly created group some attributes based on some of the attributes of the grouped objects.
group -n "testGroup01";
addAttr -ln "Length" -k true -dv (`getAttr ($plates[0] + ".scaleZ")`);
Well, works fine for the first run. If i run it a second time, i get an error (no object matches name |testPlate.scaleZ).
I know that | is kind of parenting operator. But doesn't |xxx mean that it is parented to the world, which means it normally should work like in the first run?
Thanx in advance
Blues
i have a little problem. Looks like this.
At first i create objects, throw their names via "ls -sl" in separate arrays.
polyCube -n "testPlate";
string $plates[] = `ls -sl`;
Then i group them and finally give the newly created group some attributes based on some of the attributes of the grouped objects.
group -n "testGroup01";
addAttr -ln "Length" -k true -dv (`getAttr ($plates[0] + ".scaleZ")`);
Well, works fine for the first run. If i run it a second time, i get an error (no object matches name |testPlate.scaleZ).
I know that | is kind of parenting operator. But doesn't |xxx mean that it is parented to the world, which means it normally should work like in the first run?
Thanx in advance
Blues
