How make SetObjectDisplayMode to affect all viewports?

Instead of only the one you are working in? I find it annoying to have to change the object display every single time, especially for layouts.

For example, I will want an arctic display model, but I will change the glass to shaded and set at 50% opacity to achieve the sheer look.

Hi Melanie - you can try this script - guaranteed somewhat tested:

SetObjectModeInAllPageDetails.py (1.4 KB)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

-Pascal

Thank you, I tried this and received this error message:
Capture

As well I tried opening a layout detail, selecting the object and running the python script, where I received no error message, but the object did not remain in the shaded view when I opened another detail view in layout.

Hi Melanie -so, you want objects to follow a specific display mode in all new details? This thing sets the mode for existing details in the current layout… I can make it check that you are in a layout when it runs, and/or I can just make it work on details in all layouts, but making it work in future layouts and details is a tall order, I think.

-Pascal

I know that sometimes when I import a file that may or may not have been made in rhino, if there is a glass component and it is already set to a shaded display mode, while the rest of my model is is arctic, and it somehow “sticks” in all the new detail views I open. So, I wonder if there is a way to do this with the object properties with out a python script.

Thank you for you script though, I will experiment with it in layout!

Hi Melanie -

I guess we’d need to see an example of that to be able to tell what’s going on.
-wim