Netgen snapshot from python

More
7 years 1 month 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 11 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 11 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.103 seconds