I don't think Python is any more "accurate" at math than MEL is. The reasons why you pick Python over MEL are others: -Much faster (something which becomes clear when you deal with many objects/components or perform math-based operations) -Much better syntax - more readable and not as hard to fuck up with -You still have…
thanks for the answer, but the mel script that i used, also used math and trigenometrie to calculate how much to rotate, i dont see, why it should not be as accurate as the phython script. i'm talking about the marktin menu in maya, my bad :)
Nightshade UV Editor 2.0.1 has this feature. Select an edge or two UV's and run "Orient Edge". See my signature for the download link. If you still want to code this yourself then you need to calculate the arc tangent in degrees. You will get a result ranging between -90 and +90 degrees - which is the value that you need…