# Simulation Camera: save view as image

**URL:** <https://forum.visualcomponents.com/t/simulation-camera-save-view-as-image/1242>\
**Category:** General Questions\
**Created:** [April 30, 2020, 3:45pm UTC](https://forum.visualcomponents.com/t/simulation-camera-save-view-as-image/1242 "2020-04-30T15:45:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mschamp](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/m/aeb1de/32.png) [@mschamp](https://forum.visualcomponents.com/u/mschamp)\
**Post date:** [April 30, 2020, 3:45pm UTC](https://forum.visualcomponents.com/t/simulation-camera-save-view-as-image/1242/1 "2020-04-30T15:45:34Z")

</div>

Is there a way to save the camera view from the asycube feeders in a file (PNG,bitmap,JPG,…) for processing.

More detailed: I would like to save the view from the camera the “cameraActive” is true to a file. I will use that file in my real image processing tool, to verify the functionality, and connect it to the real PLC.

Is there a way to save this view (without the camera) each time the “CameraActive” == True without disturbing the view of the model

 ![image](https://forum.visualcomponents.com/uploads/default/original/1X/cc09994cecda3e75e5869c0cbe2a59e4ff5b4ea2.png)

So the user has an independent view on the model the whole time.

 ![image](https://forum.visualcomponents.com/uploads/default/original/1X/8edb0d5cb6b39b4fb0510841fb834b65ae7d6743.png)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![mschamp](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/m/aeb1de/32.png) [@mschamp](https://forum.visualcomponents.com/u/mschamp)\
**Post date:** [June 30, 2020, 1:14pm UTC](https://forum.visualcomponents.com/t/simulation-camera-save-view-as-image/1242/2 "2020-06-30T13:14:46Z")

</div>

Does someone has an idea how to achieve this?

---

<div class="post-metadata">

**Author:** ![keke](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/keke/32/762_2.png) [@keke](https://forum.visualcomponents.com/u/keke)\
**Post date:** [July 1, 2020, 6:00am UTC](https://forum.visualcomponents.com/t/simulation-camera-save-view-as-image/1242/3 "2020-07-01T06:00:40Z")

</div>

Hi,

I don’t think this is possible. You can get a screenshot with python API with the snippet below but it will grab the image from current view. So you would need to briefly change the view to Asycube camera and back to original position and I think this will be noticeable to the user.

```
cmd = app.findCommand('saveBitmap')
cmd.execute(r'file:///C:\Users\USER_XXX\Documents\test.png','rPng',1920,1080)

```

-k
