Screen Capture in Editor with Python - o3de/o3de GitHub Wiki

You can take a screenshot in Editor using the Python console.

  1. Open the Python console in the Editor and run
import azlmbr.bus
import azlmbr.atom
  1. In the Editor viewport menu set the resolution to Custom and enter the width and height you want (e.g. 4k or higher)
  2. In the Python console run
azlmbr.atom.FrameCaptureRequestBus(azlmbr.bus.Broadcast, "CaptureScreenshot", "Capture1.png")

This will write a PNG file named Capture1.png to your project's Cache folder.