[Maya-Python] Re: Getting viewport dimension and laying image planes within

2020-01-24 Thread Doktor Weeny
I have two snippets that might help : # First Snippet import maya.OpenMayaUI as omui view = omui.M3dView.active3dView() x = view.portWidth() y = view.portHeight() # Second Snippet import maya.OpenMayaUI as omui mdag_path = om.MDagPath() sel = om.MSelectionList() sel.add(cam)

[Maya-Python] Re: Getting viewport dimension and laying image planes within

2020-01-24 Thread kiteh
Hey Doktor, I have attached a screenshot about what I am trying to achieve. For example: - I have selected 3 imagePlane nodes as seen in my "front" camera viewport/ modelPanel, assuming the position of three planes are at origin point initially. - If I choose the `direction` to be