Is it possible to auto-rotate UV Islands with Python? For example I selected all islands and want to rotate them according to their width and length.
I need to:
- get all selected islands.
- get their width and height.
- rotate an island by 90 degrees.
How do I do it with python?