Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Maxon Cinema 4D › Simple task in Python

  • Simple task in Python

    Posted by Ales Zemla on April 19, 2018 at 11:04 am

    Wouldn’t anyone please know how to do this simple task in Python?

    Load a model to a scene
    Position it to a place
    Add a material to it
    Render it
    Save the picture
    Delete the model
    Load another model
    Do the same repeatedly
    .
    .
    .

    What I have in mind: I have a sequence of 3D models that I created in different software and I want to render it to form a video. Thank you.

    Ales Zemla replied 8 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Steve Bentley

    April 19, 2018 at 8:10 pm

    I can see a few issues with this process I thought I’d mention before you head down the rabbit hole:

    The models coming from different packages will have different mapping associated with them, so unless you are going to do a plain jane material and let it wrap however it likes, you may end up with strange looking textures.

    Are all the models the same size? (including the same scale and same orientation?) Some packages work in different units to C4d and some even have Z as up or Y inverted, so your models may come in too big or backwards or upside down.
    And then there’s the camera to frame the model’s different sizes – you will have to include math to get world width and height and work out how far back the camera should be for each model, based on focal length and aspect ratio.

    This doesn’t solve any of the above but is a hack for loading. There are mesh loaders out there (like the one that comes with Real Flo – C4D may have one by now). If you have OBJs and name them all sequentially, C4d will load them, one for every frame. Then just render a movie, however many frames long you have models for and you’ve got all your shots.

  • Ales Zemla

    April 20, 2018 at 7:14 am

    Thank you for your answer. I just learned it
    can be done in Mograph.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy