Switching colorset after importing files

I often import files from different sources, and depending on their colors they may look better on a white, gray, or black background.

I created three OptionsExport files for the system colors, and three template .3dm files with matching layer colors.

I would like to make three toolbar buttons to switch between these setups:

  • white background + matching system colors + matching layer colors
  • gray background + matching system colors + matching layer colors
  • black background + matching system colors + matching layer colors

Two issues:

  1. OptionsImport always opens a file selection dialog. Is there a way to run it silently from a script/macro with a known file path?
  2. How can I import/apply layer colors from another .3dm? LayerStateManager does not seem to update colors for layers that already exist.

What is the recommended way to quickly switch both Rhino system colors and document layer colors between these three setups?

Hello @Stefano_Menci,

If you append - to (almost) any command in Rhino, it will run headlessly.

As for the rest of this, maybe @dale can reveal more about the LayerStateManager question.