Create Camera Command and Editing its Attributes

On 17/03/2016 at 12:15, xxxxxxxx wrote:

Hi,

I was looking for the command to create a new camera in Python.
And then how to access it's attributes like: focal length and sensor size.

Thank you for the help!

Cheers,

Matt

On 17/03/2016 at 12:30, xxxxxxxx wrote:

OK, I answered my own question, but I won't delete the thread in case some else needs to search for it in the future.

newCamera = c4d.CameraObject()
newCamera.SetAperture(30)
newCamera.InsertBefore(cameraObject)

On 18/03/2016 at 01:42, xxxxxxxx wrote:

Hi Matt,

at first, a warm welcome from MAXON's SDK Support team 🙂

Glad you already found a solution. And yes, it's good to leave your thread here for future reference. In general you don't have to worry about deleting threads. We'll take care, if needed, but except for spam, that rarely happens.