SetObjectDisplayMode applies to only one viewport. Is that logical?

I never use the viewport tabs to switch views, so I never noticed this. But some of the people here pointed out that if you use the DisplayObjectMode in one view, then switch to another view using the tabs, that object’s display mode goes back to the viewport mode. Does this make sense? If a user intentionally sets an object to display differently than the viewport display mode, shouldn’t that choice “stick” between viewports? It does if I just type the viewport name to switch views.

I know there are some scripts from 2014 to accomplish this, but it seems to me that there should be at least an option to apply ObjectDisplayMode settings to all viewports. I also noticed that there are no methods in the Rhino-Python methods list for dealing with ObjectDisplayModes.

There’s probably a reason it doesn’t do this now, that’s why I’m suggesting an option so it’s a bit more useful for everyone.

Hope this makes sense,

Dan

1 Like

I just checked in V5, V6, and V7 WIP, and the change is a per object, per viewport setting.

I think the reason is so you can use a different display mode for the same object in different viewports.

Yes, but it could have an option to apply to all viewports… something that has been missing since its inception. It’s scriptable, so I don’t think it should be a huge problem to integrate that functionality natively.

@DanBayn - here are my versions, revised since 2014 just in case.

SetObjDisplayModeAllViewports.py (1.8 KB)
SetSpecificObjDisplayModeAllViewports.py (1.7 KB)
RemObjDisplayModeAllViewports.py (775 Bytes)

Got that, thanks.

RH-59215 SetObjectDisplayMode: All viewports in addition to per vp

-Pascal

Thanks guys.