Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. ilad
    3. Topics
    I
    • Profile
    • Following 1
    • Followers 0
    • Topics 8
    • Posts 16
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by ilad

    • I

      How to adjust output path in Python Batchrender class?

      Cinema 4D SDK
      • python r21 • • ilad
      3
      0
      Votes
      3
      Posts
      690
      Views

      M

      Hi sorry I overlook your answers,

      There is no way to directly change the path in the RenderQueue to do so, you have to edit the document.
      So before adding a document, you need to load them, then define the path in the render setting and then resave the file.
      Here a quick example.

      import c4d # Load the document docPath = r"PATHtoc4dFile.c4d" doc = c4d.documents.LoadDocument(docPath, c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS, None) # Retrieves the active render setting renderData = doc.GetActiveRenderData() # Set the new path for the picture renderData[c4d.RDATA_PATH] = r"MyPicturePath.exr" # Save the document c4d.documents.SaveDocument(doc, docPath, c4d.SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST, c4d.FORMAT_C4DEXPORT)

      Cheers,
      Maxime.

    • I

      How can i render/add render queue in Python ?

      Cinema 4D SDK
      • • • ilad
      4
      0
      Votes
      4
      Posts
      769
      Views

      ManuelM

      hi,

      I've moved the answer about the output path to this thread

      Cheers,
      Manuel

    • I

      Beginner:How to assign A-material to B-cube by python?

      Cinema 4D SDK
      • • • ilad
      5
      0
      Votes
      5
      Posts
      1.5k
      Views

      ManuelM

      hi @cinamatic ,

      You should open a new thread for your question as it is not related to this thread.
      I found this thread where you will find some useful information about takes and material.

      If you have any question, please open your own thread explaining what you are trying to achieve and pointing to those different threads. Futur user will find every information to follow the discussion.

      Cheers,
      Manuel

    • I

      Beginner:How to set A cube as the child of B cube by python?

      Cinema 4D SDK
      • • • ilad
      3
      0
      Votes
      3
      Posts
      778
      Views

      I

      @m_adam Thanks a lot, great help, I will try your way

    • I

      Beginner:How to set axis to the bottom of a cube by python?

      Cinema 4D SDK
      • • • ilad
      6
      0
      Votes
      6
      Posts
      1.7k
      Views

      M

      @ilad Well, it's not limited to non-animated objects. As @r_gigante posted, you're actually modifying the points and the matrix. Both operations can also be achieved manually. So, no difference if animated or not.

      The only thing you have to keep in mind when modifying animated objects is to make sure, all keys containing Matrix/PLA data have to be handled as well.

    • I

      Beginner:How can i set a key-frame and value to a cube by python?

      Cinema 4D SDK
      • • • ilad
      5
      0
      Votes
      5
      Posts
      2.1k
      Views

      ManuelM

      hello,
      thanks @tummosoft, it's nice to see it's helpful 😄

      @ilad
      By the way instead of ID_BASEOBJECT_POSITION you could have use ID_BASEOBJECT_REL_POSITION. Both Ids are the same.

      If you want to know how to get those ids you can use the python console and drag and drop parameters, more information on this page

      In this case the DescID is composed of two DescLevel. The first define the Vector type, the second de Float type for X, Y and Z.

      (DescID can have less or more levels)

      To change the Size.Y of the cube, the descID will be :

      c4d.DescID(c4d.DescLevel(c4d.PRIM_CUBE_LEN, c4d.DTYPE_VECTOR, 0), c4d.DescLevel(c4d.VECTOR_Y, c4d.DTYPE_REAL, 0)))

      To change the scale of the object the descID will be :

      c4d.DescID(c4d.DescLevel(c4d.ID_BASEOBJECT_REL_SCALE, c4d.DTYPE_VECTOR, 0), c4d.DescLevel(c4d.VECTOR_Y, c4d.DTYPE_REAL, 0)))

      Cheers
      Manuel

    • I

      i code to create a group of cylinders in C4D python,why no response?

      Cinema 4D SDK
      • • • ilad
      5
      0
      Votes
      5
      Posts
      892
      Views

      I

      @r_gigante
      Thank for your professional help! I am so grateful for your commitment!☺ 👍 👍