Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login
    1. Home
    2. Cinema 4D SDK
    Log in to post
    Load new posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • KantroninK

      Move objects in the hierarchy

      python • • Kantronin
      2
      0
      Votes
      2
      Posts
      107
      Views

      KantroninK

      I found the solution on https://plugincafe.maxon.net/
      It was enough in the for loop to add the following line of code:

      for object in list_object:
      if object != object_root:
      object.InsertUnder(object_root)
      c4d.EventAdd()

    • B

      xRef file path is broken if created via python

      python 2023 • • BackendKG
      3
      0
      Votes
      3
      Posts
      108
      Views

      B

      Sorry for not making my post as clear as it should have been, next time I will do better 🙂

      The good thing is, I fixed it! The problem was how I loaded my initial master project.

      # instead of using c4d.documents.LoadDocument() # i replaced it with c4d.documents.LoadFile()

      ... and now my xRef works just fine!

      Thank you again!

    • J

      Extending the Command Line with Python

      python r21 • • jwzegelaar
      10
      0
      Votes
      10
      Posts
      963
      Views

      M

      @jwzegelaar said in Extending the Command Line with Python:

      We found a good workaround! We now made a custom commandline plugin where we can add our own arguments. And it works great. If anybody in the future has this issue you can always contact us and we will help.

      Thanks again everybody for all the help!

      Hi jwzegelaar,
      I believe that I share the same needs as you, where I also need to pass in external parameters via a .py file to make modifications to the file before rendering. Unfortunately, I am encountering the same issue as you.
      Although this post has been quite some time, I am still hopeful for your assistance. Your help would be greatly appreciated and it is highly important to me.

    • B

      Other methods for material[c4d.ID_MATERIALASSIGNMENTS]?

      python 2023 • • bentraje
      7
      0
      Votes
      7
      Posts
      160
      Views

      B

      @ferdinand

      Gotcha. Thanks. Will close this thread now.

    • a_blockA

      CRITICAL: Stop when calling SetWorldPluginData

      python 2023 • • a_block
      5
      0
      Votes
      5
      Posts
      154
      Views

      a_blockA

      Thanks for the offer. much appreciated. But your explanations were good and plenty as usual.
      I think, I know exactly what is going on.

    • K

      Limit the destination of UserArea.HandleMouseDrag()

      2023 python • • kng_ito
      4
      0
      Votes
      4
      Posts
      136
      Views

      K

      Hi @m_adam,

      Sorry for the delay in responding.
      Yes, the problem has been resolved.

    • B

      Can I convert several PYP files to one PYPV file?

      2023 • • bentraje
      9
      0
      Votes
      9
      Posts
      275
      Views

      B

      Closing the thread with the following conclusion.

      No native way to do it in C4D. Manually have to merge them then convert that one file to PYP.
      So have to manage separate project files. One for source ones and one for merging several PY files.

    • B

      FindNodesByName Not Working As Expected

      2023 python • • bentraje
      10
      0
      Votes
      10
      Posts
      311
      Views

      B

      @m_adam

      slr. can confirm the FindNodesByName now works as expected on the illustration code I used previously.

      Thanks

    • J

      how to close c4dpy inside a script?

      python • • JACK0319
      3
      0
      Votes
      3
      Posts
      149
      Views

      M

      Hello @JACK0319,

      without further questions or postings, we will consider this topic as solved by Monday 05/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • aghiad322A

      Instance Object Link is not working

      python • • aghiad322
      3
      0
      Votes
      3
      Posts
      103
      Views

      M

      Hello @aghiad322,

      without further questions or postings, we will consider this topic as solved by Monday 05/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • H

      Is it possible to intercept rendering to modify the document that is about to render?

      python s26 windows sdk • • HerrMay
      4
      0
      Votes
      4
      Posts
      101
      Views

      M

      Hello @HerrMay,

      without further questions or postings, we will consider this topic as solved by Monday 05/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • J

      Is it possible to build a TreeView from a user database?

      sdk c++ • • jpheneger
      3
      0
      Votes
      3
      Posts
      89
      Views

      M

      Hello @jpheneger,

      without further questions or postings, we will consider this topic as solved by Monday 05/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • mikeudinM

      Fieldlist HasContent() GetCount() bug workaround

      python r23 • • mikeudin
      3
      0
      Votes
      3
      Posts
      137
      Views

      M

      Hello @mikeudin,

      without further questions or postings, we will consider this topic as solved by Monday 05/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • CJtheTigerC

      Register to object change

      sdk c++ • • CJtheTiger
      5
      0
      Votes
      5
      Posts
      178
      Views

      ferdinandF

      Hey @CJtheTiger,

      sorry for my radio silence here and thank you for updating the thread. In short: you drew all the right conclusions for the general case.

      A MessageData solution can be quite performant when you know exactly what you are doing and when you must monitor either every object (in the sense of geometry) in the scene graph or at least many of them. For something like monitoring materials, shaders, or tags, the solution is mandatory anyways.

      The tag solution on the other hand can become a bottle neck when the information flow becomes too expensive. Imagine such dependency propagation tag called DataTag, and you have 1000's of them in a scene. Each tag not only informs then one but multiple other nodes about changes of its host. Due to that there is also overlap, i.e., both DataTag DA and DataTag DB inform a target object T about changes of their host objects HA and HB. But for T this might be the "same" event and it then might be doing work twice. So, when stuff is getting complicated, you. are often better off with a MessageData solution, as you can consolidate things there.

      Cheers,
      Ferdinand

    • J

      Best practices for loading textures?

      sdk c++ 2023 • • jpheneger
      3
      0
      Votes
      3
      Posts
      108
      Views

      M

      Hello @jpheneger,

      without further questions or postings, we will consider this topic as solved by Friday 02/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • W

      How to make Python Field react to camera?

      python 2023 • • wuzelwazel
      8
      0
      Votes
      8
      Posts
      275
      Views

      M

      Hello @wuzelwazel,

      without further questions or postings, we will consider this topic as solved by Friday 02/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • ThomasBT

      Problem Adding description parameter by clicking button and access this

      2023 windows python r23 • • ThomasB
      26
      0
      Votes
      26
      Posts
      907
      Views

      M

      Hello @ThomasB ,

      without further questions or postings, we will consider this topic as solved by Friday 02/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • C

      Editing RS Nodes with Python

      python • • cgweasel
      5
      0
      Votes
      5
      Posts
      250
      Views

      M

      Hello @cgweasel,

      without further questions or postings, we will consider this topic as solved by Friday 02/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • C

      Detect Hirarchy Change in a tag

      • • cgweasel
      3
      0
      Votes
      3
      Posts
      71
      Views

      M

      Hello @cgweasel,

      without further questions or postings, we will consider this topic as solved by Friday 02/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • FSSF

      How to detectflip normals of object inwardoutward?

      r23 python • • FSS
      4
      0
      Votes
      4
      Posts
      180
      Views

      M

      Hello @FSS,

      without further questions or postings, we will consider this topic as solved by Friday 02/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.