Help Script Camera Control

Hi everyone. Sorry, I’m a beginner and I need your help, I have a mesh that is oriented on another mesh and I move it through sliders, through the camera control I can set the view parallel or superior to the object that is oriented. Is it possible to do the same thing but with a C# script or Python? Thank you
prova camera.gh (695.4 KB)