Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Anatomical Models
  4. User Material database import via python API

User Material database import via python API

Scheduled Pinned Locked Moved Anatomical Models
python apimaterialdatabase
2 Posts 2 Posters 614 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rediponi
    wrote on last edited by rediponi
    #1

    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

    1 Reply Last reply
    0
    • brynB Offline
      brynB Offline
      bryn
      ZMT
      wrote on last edited by bryn
      #2

      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]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Search