User Material database import via python API
-
Hi,
Within Sim4Life , custom materials can be created and saved in User x.x Database.
If I export this database, it creates a xxxx.db file.Using the python API, is it possible to import this tissue database and use in a similar way as the built in databases (s4l_v1.material.database) ?
thank you,
redi -
This is currently not available in 6.2 but will be in the next release.
XMaterials.ImportDatabase(file_path:str, db_name:str, db_version:str="", merge:bool=False)To print the available databases you can run
[db.Name for db in XMaterials.GetMaterialDatabase().AllDatabases]
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