setActiveCamera() refactorized