Notifications
Clear all

[Closed] expose transform angle 180 strange problem

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

2 Replies

Hi Suki,

I’m not going to pretend I know why this happens but I do have a suggestion for a possible workaround.

In your ‘if’ statement, check whether obj01.pos == obj02.pos instead of checking for the angle value of 180. This seems to work for me.

Hope that helps. Good luck

Duncs

hey thanks,

i thought about that too and used the exposed transforms distance value in the if condition— and guess what? same result 180. it’s like number 23 in a max universe…it’s everywhere…heeeelp

but i will try to use that condition based on the normal $.pos