How to handle Render Settings changed from inside "Document Properties"

I have the following problem:

User can change the settings of my custom Render plugin from the Render panel. This works fine.
But it is also possible to change the Render parameters by opening the “Document Properties” dialog and selecting the Render option from the list. And changing parameters from this mode doesn’t work correctly.
It actually works just the opposite as it should. When user clicks on the OK button my Render parameters goes back to the previous state (Rhino writes back the start parameters automatically???), clicking on Cancel makes Rhino to keep the changed parameters.

What is the correct way to handle this? Should I catch Document Properties change event? Or?

Thanks,
Márton

Hi @marton.parlagh,

This would be my suggestion, yes.

– Dale

Hello Dale,

I try to catch this event

RhinoDoc.DocumentPropertiesChanged

But this one doesn’t give too much info for me. Is there other event I can check?

Márton

Hi @marton.parlagh,

Yeah unfortunately the DocumentPropertiesChanged event isn’t very granular. But it’s what we have.

– Dale

Thanks.

And do I see maybe how was the Properties dialog closed? With OK or Cancel button?

M

No, sorry.

– Dale

Ok, thanks.

Márton