I have a number of image planes (created using Free Image Plane), of varying sizes. By varying sizes, I mean to say that the image sources are of different dimensions. (No changes are made towards the scale attributes)
Even so, I am trying to create a script in which it will allows me to rearrange these image planes (spaced out nicely) if I choose a direction (see attached)
Currently, I was able to conjure up a script that allows me to grab all the image planes based on the modelPanels of a specified camera. However I have no clue on how should I query for the width or height of the viewport, or the way of how these varying image plane sizes will fit to one of the 5 directions (top, left, right, bottom, all)
Need some insights on how I should proceed or if this is even doable?
![directions.png](https://groups.google.com/group/python_inside_maya/attach/13fa11ac3fde56/directions.png?part=0.1&view=1)