[QUOTE=svennovich;27447]Hello,
I have tried this part of the code and it works ok.
Only problem is that the fitting happens on the opengl view size and not on the render size.
I want to fit the object in the render frame.
Any ideas on this ?
Is it possible to change the viewsize or a work around for this ?
thanks !
Sven[/QUOTE]
Yup you can totally fix the viewsize it’s a flag in the viewfit. try pm.viewFit([camera],f=[some number],[whatever you want to focus on])
the f is the focus amount and how far the camera will go in and out. Remember you can change select the camera and set up the reticle (set the gate to resolution gate) then run the view fit it will respect the it.