Netgen snapshot from python

More
7 years 2 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
7 years 2 weeks 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
7 years 1 week 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.116 seconds