Eric Hazen
2013-03-22 19:30:04 UTC
Hello Everyone-
I'm wondering if it is possible from within a script to access the
transformation
and rotation which are currently in effect?
For example, if there were a function "GetCurrentTransformMatrix()" one
could do:
m = GetCurrentTransformMatrix();
tx = m[0][3];
ty = m[1][3];
tz = m[2][3];
The use case is to extract coordinates of a few key points in a complex
model using
the "echo" command.
The reason this isn't trivial is because I have a hierarchy of
sub-assemblies which
all have different translations/rotations, so it is somewhat troublesome to
figure out the final XYZ of points within the sub-assemblies.
Thanks much for any ideas!
-Eric
I'm wondering if it is possible from within a script to access the
transformation
and rotation which are currently in effect?
For example, if there were a function "GetCurrentTransformMatrix()" one
could do:
m = GetCurrentTransformMatrix();
tx = m[0][3];
ty = m[1][3];
tz = m[2][3];
The use case is to extract coordinates of a few key points in a complex
model using
the "echo" command.
The reason this isn't trivial is because I have a hierarchy of
sub-assemblies which
all have different translations/rotations, so it is somewhat troublesome to
figure out the final XYZ of points within the sub-assemblies.
Thanks much for any ideas!
-Eric