Before render, i change render options in Viewer

I want to change render settings based on the values ​​I received before rendering.

To get to that point, How do I do that?

or how to redraw in viewer??

i know that the setColor function is not available in Viewer.

I want to be different between viewer and modeler

Please explain in clear terms what you are trying to achieve. Code snippets and/or screenshots would be helpful.

It’s complicated because there are multiple of code.
Can I capture the point before rendering in the viewer?

Do you mean executing code before an element get’s rendered?

yes, i want to capture that point.

Have you been exposed as an event in the viewer?

You can listen for render.shape and render.connection.