How to change display mode using script?

This seems more appropriate. The one you found was for layouts.

1 Like