I am trying to better understand the best practice method for a renderer plugin setting Render Properties on a Document. Our rendering plugin would ideally want to set some of the document render properties to a specific value if the document is new or made from a template.
While we could set them on Open, we don’t want to modify the values if the user has specifically changed them to something else, only the default values. Is there a way to differentiate between the
EndOpenDocument event on opening a template when New was requested vs a standard open?
Despite our renderer plugin returning false if
SupportsFeature is called with
LinearWorkflow the document render properties enable Gamma correction, Linear Workflow and set the Gamma to 2.2. When rendering it adds a final pass with the Gamma correction which in our case we don’t want since this is handled internally.
The other properties such as Sun and Sky get correctly removed from the renderer settings when we return false in the
SupportsFeature call. Not sure if that is a bug or we are misunderstanding these properties. It seems specific to Rhino 7.
Right now the user would need to edit their templates to change the default, however that would then apply to all renderers. If looks like we can’t prevent Rhino adding the Gamma correction to our plugin renderer.
Any thoughts (besides the fact that ideally we’d support the internal Rhino linear workflow which isn’t an option for now unfortunately)?