Phlok
01-27-2009, 07:51 PM
Hi,
In my scene there are some polyCubes, and I want to write a script that creates a smaller polyCube in the middle of each of the polyCubes already in the scene.
The problem is, the big cubes are scattered all over the scene, their history deleted and a "Freeze Transformations" was done to them. So if I do:
xform -q -matrix -ws pCubeN;
All I get is 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1, which is not what I need, of course.
I hoped the worldSpace flag would return the transformations relative to worldSpace, but taht doesn't seem to work.
So how do I get the information I need for creating the little cubes?
Maybe there's a more simple approach, if you got an idea please let me know!
Thanks!
In my scene there are some polyCubes, and I want to write a script that creates a smaller polyCube in the middle of each of the polyCubes already in the scene.
The problem is, the big cubes are scattered all over the scene, their history deleted and a "Freeze Transformations" was done to them. So if I do:
xform -q -matrix -ws pCubeN;
All I get is 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1, which is not what I need, of course.
I hoped the worldSpace flag would return the transformations relative to worldSpace, but taht doesn't seem to work.
So how do I get the information I need for creating the little cubes?
Maybe there's a more simple approach, if you got an idea please let me know!
Thanks!
