Access Visualizer Option

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Louis Paire
Posts: 8
Joined: Mon Apr 01, 2024 12:12 pm

Access Visualizer Option

Post by Louis Paire » Mon May 13, 2024 3:36 am

Hi,

I want to play with the vizualizer option in my code, do you know if there is a way to access command like change Background,etc... in Python.

Code: Select all

import opensim as osim

# Files Paths
model_path = "gait10dof18musc_P1__cycling_torque_driven_model.osim"
motion_file = "gait10dof18musc_P1__cycling_muscle_driven_model_2024-05-13_11-08-22.sto"

# Model importation 
model = osim.Model(model_path)
newModel = model.clone()
newModel.set_ForceSet(osim.ForceSet())

# Motion Importatopn
table = osim.TimeSeriesTable(motion_file)

# Visualization
viz = osim.VisualizerUtilities()
viz.showMotion(newModel, table)

Tags:

User avatar
Louis Paire
Posts: 8
Joined: Mon Apr 01, 2024 12:12 pm

Re: Access Visualizer Option

Post by Louis Paire » Tue May 14, 2024 1:11 am

I get somes infos about the SimTK Visualizer, and I don't know how can I use this class in python with OpenSim to control the visualizer ?

https://simbody.github.io/3.7.0/classSi ... lizer.html

POST REPLY