Setting PrintColor to "By Display" in a template file

Hi all!

I’ve recently been creating Rhino files with a lot of different colors, and have been wanting to set up my default file template so that the print colors always default to “By Display.” Does anyone know of a way to do this?

(For a bit more context: I’m usually making graphics and things with a lot of colors in Rhino (example below) and I am editing and adding a lot of colors using a “SetColor” macro I set up. (! -Properties Pause Object Color Object Colorpicker) - this changes the display color but not the print color, so when I go to print my drawing, I often forget and have to go into the menu and set the print color to “By Display,” and then it works fine. But since I basically do this every time and rarely want the print color and display color to be different, I figure it’s probably better to automate this step. I’m open also to changing my macro, but I don’t see an easy way to change both Color and PrintColor at the same time)

Happy to hear any ideas. Thanks for your help :slight_smile:

File sample below, just to show the amount of colors I’m working with

D Meets A Test.pdf (6.2 MB)

Hi @pdfaze

As you cannot set the Print Color to “By Display” from the command line you need to get under the hood with some programming.

Here is a short Python program that sets the Print Color to “By Display” at the same time it sets the Object Color. Save it onto your drive and make a new macro to run it, like this:
! -_RunPythonScript "D:\TestRhinoScripts\ColorPdfaze.py"
where the path needs to be where you saved it.

ColorPdfaze.py (290 Bytes)

n.b. After saving the py file to your drive you need to go into its properties from file manager and unblock it before Windows will let you run it:

HTH
Jeremy

1 Like

Thanks Jeremy!!

1 Like