is there a way to do it or to set it as a Rhino starting command?
Hi @Carl_starling,
the easiest way would be to setup a Rhino file with the required settings and save it as an empty template file. Once you choose a new document to open and you’re asked for a template file to start with, select yours and enable the checkbox to “Use this file when Rhino starts”.
Alternatively, since you’re asking this in the Scripting cathegory, here are some snippets to get/set gamma related values and states:
import scriptcontext
# get 'Gamma' checkbox state
print "Gamma enabled:", scriptcontext.doc.RenderSettings.LinearWorkflow.PostProcessGammaOn
# set 'Gamma' checkbox state
scriptcontext.doc.RenderSettings.LinearWorkflow.PostProcessGammaOn = True
# get 'Gamma' value
print "Gamma value:", scriptcontext.doc.RenderSettings.LinearWorkflow.PostProcessGamma
# set 'Gamma' value
scriptcontext.doc.RenderSettings.LinearWorkflow.PostProcessGamma = 2.2
# get 'Use linear workflow checkbox' state
print "Linear workflow:", scriptcontext.doc.RenderSettings.LinearWorkflow.PreProcessTextures
# set 'Use linear workflow checkbox' state
scriptcontext.doc.RenderSettings.LinearWorkflow.PreProcessTextures = True
The same is possible to enable / disable the skylight:
import scriptcontext
# get state of 'Skylight' checkbox
print "Skylight enabled:", scriptcontext.doc.Lights.Skylight.Enabled
# set state of 'Skylight' checkbox
scriptcontext.doc.Lights.Skylight.Enabled = True
You can write a Python script with the required code from above, save it somewhere and then load this script on startup. To do this go to:
Options > General > Command Lists > Run these commands everytime Rhino starts
and add this macro in a new line to the list:
! _-RunPythonScript "C:\YourPathToTheScriptFile\ScriptName.py"
Note that you need to change above file path so it matches where you’ve saved to.
_
c.