@chris_g wrote:
Hi,
I'm developing a plugin for visualization purposes. When a user loads a file, a default black render environment should be set (instead of the default grey environment). As I understand I can save a rendering environment to a document, but I need it for arbitrary documents a user loads.
It doesn't really matter if there is a solution in the Rhino-settings, Brazil-settings or in code RhinoCommon. It just has to be portable to other workstations.
I tried to save an environment in Brazil settings, but after restarting Brazil can't find the environment anymore.
I also tried to set rendering background to black in my plugin code like this
Rhino.Render.SimulatedEnvironment sim = new Rhino.Render.SimulatedEnvironment(); Rhino.Render.RenderEnvironment.CurrentEnvironment.SimulateEnvironment(ref sim, true); sim.BackgroundColor = System.Drawing.Color.Black;
But this has no effect at all.
Maybe someone can point me in the right direction with this one?
Thanks!
Posts: 3
Participants: 3