Skip to content

How to generate a png/jpg image out of a design #1540

Answered by RobPasMue
ansamassidd asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ansamassidd! The Design, Component and Body objects have the option to take a screenshot of your 3d body using PyVista's capabilities. For example:

design.plot(screenshot="result.png")

This will render a 3D view of your design and store it in a screenshot. The view will be always in Isometric mode, and that's probably something we can enhance...

Another option is to use the screenshot button directly in the plotter. If you run the following:

design.plot()

And then change your view/zoom as desired with your mouse, you can finally click on the "Screenshot" button to save it as a PNG file as well. In the image, I framed the screenshot button in a red box for visibility.

Hope all this he…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@RobPasMue
Comment options

Answer selected by ansamassidd
Comment options

You must be logged in to vote
3 replies
@RobPasMue
Comment options

@ansamassidd
Comment options

@RobPasMue
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants