MotionView to python export
Hi all,
I know that MotionView has the ability to import and read Python scripts, with its API. But is there a way to make it write or export the MotionView session into a python script?
In the wildest scenario - to export an entire model, properties, and results as a single python file and be able to modify it in a python environment or a different program altogether. Would be glad to know if possible or not.
Thanks in advance
Answers
-
Hi Niv,
If you want to manipulate a model using Python, it is possible simply through text file manipulation. You could read in the MDL, modify some simulation parameters, and save as a new MDL.
This type of scripting would be easier in Compose in my opinion, as it has functionality built in to directly interface with other Altair products to make the launching and post processing parts easier. You can also use Python in Compose to leverage both languages within the same script.
We do have an eLearning course for Compose that I would recommend you complete if this is a path you'd like to explore: https://learn.altair.com/course/view.php?id=407
Hope this helps!
Adam Reid
0