Create Stereoscopic Camera [SOLVED]

On 12/01/2015 at 08:48, xxxxxxxx wrote:

Hello Guys,

I would like to write a script that creates a stereoscopic camera based on the szene camera. The C4D "Stereo Camera" has all I need and is very good integrated, but I need to customize some values of it.

I am a long time C4D enthusiast, doing also lots of small python projects, but I am new to C4D Python scripting. So I have to admit, that I have poor C4D Python SDK skills.

But nevertheless i started the project, until I realized, that maybe it is impossible to create a camera or a stereo camera with python code. Only C++. Is this true?

Any advises, in which direction to go?

Thanks a lot, Volker

On 13/01/2015 at 06:50, xxxxxxxx wrote:

Hello and welcome,

Cinema 4D has no dedicated stereo camera. You have to create a "ordinary" camera (CameraObject) and turn on the stereo functionality. The camera is created like any other object and added to the document:

  camera = c4d.BaseObject(c4d.Ocamera)  
  if camera != None:  

best wishes,

On 23/01/2015 at 08:19, xxxxxxxx wrote:

Hello Volker,

was your question answered?

best wishes,

On 26/01/2015 at 03:23, xxxxxxxx wrote:

Hi Sebastian,

yes, my Noob question is fully answered. Works perfect!

There is one more question I have. Is it possible to hide certain attributes of a camera? I would like to generate a c4d stereoscopic camera, but also add special userdata, which control most of the stereoscopic attributes.

Thanks, Volker

On 26/01/2015 at 05:19, xxxxxxxx wrote:


to edit the visibility of parameters you would have to edit the parameter description. This is currently not possible in Python. Also only the camera itself should decide which parameters are visible or not. For questions no longer related to this thread's original topic, please open a new thread. Thanks.

Best wishes,