Accessing specific entities of my model from the python API
-
I am writing a jupyter script for a simulation.
I want to be able to run the script several times, to try out new things, without the script recreating a new "Model" everytime (because then i keep having multiples of my model in the modelling tab).
How can I check my smash file for an existing model, from my script.
The goal would be to have a line of code, which first checks if there already is an existing model, before then running my "createModel" function.
How do I access that information from the script?
I also need to access that information to still initialize those model parts, so i can use them in the simulation (without having to recreate them every time).Any and all inputs would be greatly appreciated!

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login