How can I add an axis of rotation about the center of mass to the model?

How can I add an axis of rotation about the center of mass to the model?

These links may help - you can get the center of mass from the statistics and make a transform around it.

https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#quantifying-segments

https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#rotate-a-node-around-a-specified-point

Thank youfor the reply, but I’m going to add an action axis to the model like this, what do I do?

That should still be possible if you set up nested transforms. Study transform hierarchies and you can center the model around it’s center of mass and even align it to the principle axes (moments) and harden the transform if you want for convenience.

Thanks, but I still want to use the action axis.