On 06/04/2013 at 21:16, xxxxxxxx wrote:
I have an ObjectData plugin that returns as an Ocamera. The first challenge is that it looks great in the viewport but doesn't render out with any relation to what my cam is doing. Lennart figured out to grab the active base draw to get that camera link and then copy the container from my cam to the mysterious render cam so the scene renders to match my cam.
HOWEVER: My focal length and Sensor Size parameters error on the Basedraw camera when I give them a float, even though I give a float to my ObjectData camera. It says it wants int or bool. So if I wrap my float inside in int(), it doesn't error but any zooming is super wonkey from the conversion.
SO, is this a bug or am I not doing something correctly?
I made a stripped down plug-in which is attached. I would love if anyone could figure out the mystery of why I cannot get the basedraw camera (presumably the render camera) to correctly match my object.
Add the plug-in to a scene, and look through the camera and hit play. See how the edges of the frame are very glitchy. Look at the code and remove the int() and it will fail only on the basedraw cam, but not on the regular cam. Remove the basedraw cam altogether, then the view doesn't follow my cam.