How to avoid camera reset when call render function [RESOLVED]

You are setting values for your scene variable twice. This is why your scene rests to the initial values.

Galen