How to change the color of ligament in the musculoskeletal model?

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Xijin Hua
Posts: 29
Joined: Tue Feb 12, 2019 4:45 pm

How to change the color of ligament in the musculoskeletal model?

Post by Xijin Hua » Fri Feb 10, 2023 10:02 am

Dear OpenSim experts:

I am creating a ligament element in a musculoskeletal model to represent an external device, as shown in the attached figure below. The default color of the ligament is green, I would like to change the color to black, to highlight the device for demonstration. I tried to change the ligament color by modifying the color values in the OSIM file:

Code: Select all

	<Appearance>
		<!--Flag indicating whether the associated Geometry is visible or hidden.-->
		<visible>true</visible>
		<!--The color, (red, green, blue), [0, 1], used to display the geometry. -->
		<color>1 1 1</color>
	</Appearance>
But it doesn't work, the color is not changed, still green. Does anyone know how to change the color of ligament in a musculoskeletal model in the OpenSim? I would really appreciate it if some one could provide helps. Thanks.
Attachments
Picture2.png
Picture2.png (176.29 KiB) Viewed 357 times

Tags:

User avatar
Xijin Hua
Posts: 29
Joined: Tue Feb 12, 2019 4:45 pm

Re: How to change the color of ligament in the musculoskeletal model?

Post by Xijin Hua » Tue Feb 14, 2023 3:13 am

Anyone knows how to do this? Thanks.

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: How to change the color of ligament in the musculoskeletal model?

Post by Thomas Uchida » Tue Feb 14, 2023 6:29 am

You can change the color by right-clicking the name of the ligament in the Navigator and selecting Display -> Color.

User avatar
Xijin Hua
Posts: 29
Joined: Tue Feb 12, 2019 4:45 pm

Re: How to change the color of ligament in the musculoskeletal model?

Post by Xijin Hua » Thu Feb 16, 2023 2:27 am

I got it, thank you very much.

POST REPLY