PDA

View Full Version : How to calculate the same values that I see in the "Scale Transform Type-In" windows?


prettyPixel
03-14-2005, 10:07 PM
I have found the way to know if an object is an mirrored object.
When I see in the Scale Transform Type-In windows, the absolute:local coordinates of an mirrored object is negative on the axis where the mirror operated.
Very well. That is exactly what I want... but I don't know how to calculate myself this values :-(

for instance when I see:
X -100
Y 100
Z 100
It is the good solution because the object is mirrored on the axis X :)
but when I tape in the listener
in coordsys local o.scale (o is my object)
[1,1,1]
in coordsys world o.scale
[1,1,1]

The values are different...
How to calculate the same values that I see in the "Scale Transform Type-In" windows ?

Bobo
03-14-2005, 11:39 PM
I have found the way to know if an object is an mirrored object.
When I see in the Scale Transform Type-In windows, the absolute:local coordinates of an mirrored object is negative on the axis where the mirror operated.
Very well. That is exactly what I want... but I don't know how to calculate myself this values :-(

for instance when I see:
X -100
Y 100
Z 100
It is the good solution because the object is mirrored on the axis X :)
but when I tape in the listener
in coordsys local o.scale (o is my object)
[1,1,1]
in coordsys world o.scale
[1,1,1]

The values are different...
How to calculate the same values that I see in the "Scale Transform Type-In" windows ?

You might wish you have never asked... ;)

Actually, the results after a mirror in the listener would be
$.scale
[-1,-1,-1]

But
$.scale.controller.value * 100
[-100,100,100]

will return exactly what you want.

But if you would link the mirrored object to another object, the result will change.
Unlink again, but the result will not be back to what it was before linking...

In a word, as soon as you find a mirrored object, Reset XForm!
And if you find who mirrored it, slap him in the face!!! ;)

NEVER EVER use the Mirror tool on regular geometry for whatever reason.

CGTalk Moderation
03-14-2005, 11:39 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.