How to manipulate the orthographic view ruler in code

How can I access this ruler in python? I’m trying to do things such as toggle its visibility and change its color and thickness. I know how to do all of these things from the pin menu, but I’d like to be able to control these with a script.

Like most everything in Slicer, this is managed by a MRML node that you access via the scene. In this case it’s the view node. You can get the view node from the threeDView via the layout manager. Is that enough to get you going?

1 Like

:star_struck: Yes it is. Thanks for the help.

1 Like