I am running a series of Anybody simulations using python and a list of parameters as the input.
The simulations run perfectly.
Previously, when I was still manually changing the parameter, I defined an output file with the variables that I am interested in analyzing.
Is it possible to change the name of the output file during each loop automatically using python such that the output file is not overwritten with every simulation loop?
This would be great as I have already streamlined my analysis and plotting based on the defined structure of the output file.
If you are using one of the new versions of the AnyMocap model, then it has a define statement prepared to append to the output file name: MOCAP_OUTPUT_FILENAME_PREFIX This you can define from Python.
Best regards
Michael Skipper Andersen
Associate Professor
Aalborg University
Your hints helped me to solve it. I am using the freeposture model, though.
In the end, I automatically changed the output file name per simulation based on the variable that I change in python:
While I am trying to automize and streamline things I wanted to do one more thing:
Passing a string variable (Motion) to my simulation and using it in the variable world as well as hashtag world
like this:
I realized you cannot just pass a string to both worlds like this. But do you know how this could be accomplished? Would be cool, as I could pass the string then through python and could automate the step of initiating the various motions as well.