Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Netgen snapshot from python

More
6 years 7 months ago #183 by janfp
Hi,
in netgen, there is the posibility to save a snapshot as jpg.
Can I also use this in a python script?

thx,
Jan
More
6 years 5 months ago #245 by Karatza
Replied by Karatza on topic Netgen snapshot from python
Hi, Jan yes, in the menu <<File>> you will see the choice <<Snapshot...>> otherwise maybe a snapshot from your keyboard (button PrtScn) would possibly work for you? It depends from what quality and for what reason you want use it, best M.
More
6 years 5 months ago #253 by cwinters
Hi Jan,

there is a "SnapShot" function available (since November 9th).
If you run your python script with Netgen, you can use it the following way:
Code:
import ngsolve.internal ngsolve.internal.SnapShot("foo.bmp")

Best regards
Christoph
The following user(s) said Thank You: janfp, bakerk
Time to create page: 0.148 seconds