# Switching colorset after importing files

**URL:** <https://discourse.mcneel.com/t/switching-colorset-after-importing-files/219864>\
**Category:** Rhino\
**Tags:** windows, color-import\
**Created:** [June 11, 2026, 7:33pm UTC](https://discourse.mcneel.com/t/switching-colorset-after-importing-files/219864 "2026-06-11T19:33:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano\_Menci](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/stefano_menci/32/762395_2.png) [@Stefano\_Menci](https://discourse.mcneel.com/u/Stefano_Menci)\
**Post date:** [June 11, 2026, 7:33pm UTC](https://discourse.mcneel.com/t/switching-colorset-after-importing-files/219864/1 "2026-06-11T19:33:55Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![CallumSykes](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/callumsykes/32/569341_2.png) [@CallumSykes](https://discourse.mcneel.com/u/CallumSykes)\
**Post date:** [June 12, 2026, 4:50am UTC](https://discourse.mcneel.com/t/switching-colorset-after-importing-files/219864/3 "2026-06-12T04:50:27Z")

</div>

Hello @Stefano_Menci,

> [@Stefano\_Menci](#):
>
> 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?

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.
