suki
08-23-2007, 12:18 PM
hi everyone
there is something i don't understand in the behaviour of the expose transform helper
i want to output a txt list of the angle between two objects at every frame, based on the expose transform.angle .
for some reason, when the objects are at the exact same position, E.T. measures the value as 180 instead of 0.
to compensate for this strange measure, my script uses an ----> if ET.angle == 180 then output_value=0 else output_value=ET.angle <----condition.
for some reason, this does not work. i always get the 180.
max really insist on this number no matter what trick i try to used, somehow the if condition seems to be blind to this specific angle.
interestingly the protractor helper shows the same behaviour, outputting angle 180 when it should be 0.
any ideas??
thanks
there is something i don't understand in the behaviour of the expose transform helper
i want to output a txt list of the angle between two objects at every frame, based on the expose transform.angle .
for some reason, when the objects are at the exact same position, E.T. measures the value as 180 instead of 0.
to compensate for this strange measure, my script uses an ----> if ET.angle == 180 then output_value=0 else output_value=ET.angle <----condition.
for some reason, this does not work. i always get the 180.
max really insist on this number no matter what trick i try to used, somehow the if condition seems to be blind to this specific angle.
interestingly the protractor helper shows the same behaviour, outputting angle 180 when it should be 0.
any ideas??
thanks
