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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "maya_viewport_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |