maya_viewport_capture
Capture Maya's Viewport 2.0 as a PNG/JPG to visually verify scene state, lighting, framing, and detect issues without an Arnold render.
Instructions
Capture the Maya viewport as PNG/JPG image and return it for visual analysis. Does not do Arnold render — it is an instant Viewport 2.0 grab (<1s); for a ray-traced still use maya_session(action='render_still'). Useful for visually verifying scene state, checking lighting, framing, and detecting issues.
NEVER captures the user's focused viewport: it playblasts a throw-away Viewport-2.0 window (its own modelPanel forced to rendererName='vp2Renderer'), so an Arnold IPR / render-override active on the user's panel can never be captured — which would saturate Maya's main thread and hang it (memory feedback_maya_gs_arnold_ipr_hang; same technique as review_turntable).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |