Saving visualization from scripts

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Karthik Sama
Posts: 3
Joined: Tue May 18, 2021 2:22 am

Saving visualization from scripts

Post by Karthik Sama » Wed Jun 16, 2021 1:05 am

I am working on reproducing the features available in the GUI of the visualizer in python scripts. I have traversed through all the methods of the visualizer class and their corresponding function definitions from the documentation. It was possible to replicate change of axis, adjusting camera view etc using these methods from python scripts. But I am unable to find any relevant methods to save the visualization as png or as a movie associated with the visualizer object. Can anyone kindly give any leads on where relevant functional APIs can be found?

Thanks in advance.

Tags:

User avatar
Jonathan SAVIN
Posts: 11
Joined: Wed Feb 10, 2021 12:52 am

Re: Saving visualization from scripts

Post by Jonathan SAVIN » Thu May 25, 2023 2:22 am

Hi everyone,

Has anyone found a way to save a "screenshot" of the visualizer by means of a Python API ? Or is there a way "perform an action" through Python API as in the GUI shell to apply the approach described in the topic "Shell scripting to save images" (viewtopicPhpbb.php?f=91&t=12055&p=34152&start=0&view=)

Thanks in advance !

POST REPLY