Take a picture in IPGMovie
cm_movie_snapshotCapture IPGMovie 3D views as images from a live CarMaker run or a saved .erg replay. Set time, camera, and dimensions to document vehicle motion.
Instructions
A picture of IPGMovie's 3D view, returned as an image. After a run it shows any moment of the last run (time_s), provided IPGMovie was open during that run. During a run, without time_s, it shows the IPGMovie window as it is at that moment (in the window's own size). With erg it replays a saved result file, which must hold the vehicle's motion (cm_output_quantities_edit(preset='movie') before that run). Do not pass time_s during a run: that makes IPGMovie stop following the run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| erg | No | Replay this result file instead of the last run (absolute path, or relative to the project) | |
| width | No | Picture width in pixels (not during a run) | |
| camera | No | Camera view: 'DEFAULT', "Bird's Eye View", 'Left Side', 'Right Side', 'Sitting In Vehicle (A)', or one from the project (default: keep the view) | |
| height | No | Picture height in pixels (not during a run) | |
| time_s | No | Simulation time of the picture in s (default: the latest moment IPGMovie holds) |