OnPostRender overrides the final render?

I have two cameras setup, one of those is the main camera, I want to render a cube with the non main camera but scale the cube by some factor, and then render the cube with it’s default scale(before it was scaled with the other camera) through the main camera, both cameras are in the same position.

main camera settings, depth=0, clear depth only
non main camera settings depth=-1, clear skybox

the non main camera has a script attached to it with OnPreRender function which scales up the cube and a OnPostRender function wich returns the cube into it’s original scale.

however, the final result is a cube with a scale that was set in OnPostRender, I want the cube to have a new scale when a non main camera renders it and the original scale when a main camera renders it, but OnPostRender overrides all the settings from OnPreRender. Any idea what I am doing wrong?

NO one can help ?

It would help if you gave us a visual representation of what you’re trying to accomplish (assuming you want both scales of the cube to be rendered at the same time. Otherwise, if you only want to display one scale at a time, you can always disable the script with OnPostRender when that camera doesn’t render the cube.

yeah I want to have both scales displayed at the same time.