Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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. Cinema 4D SDK
    Log in to post
    Load new posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • B

      Add Commands to ShowPopupDialog

      r21 python • • bentraje
      7
      0
      Votes
      7
      Posts
      1.1k
      Views

      B

      @m_adam Thanks for further clarification.

      @Ashton_FCS_PluginDev 's code works but I guess I'll just use the result of the ShowPopupDialog to trigger commands, as I added in the previous code.

    • B

      Move Tag Position in the Stack?

      r21 python • • bentraje
      5
      0
      Votes
      5
      Posts
      681
      Views

      B

      @r_gigante

      Gotcha. Thanks for the warning.

    • B

      Get Objects from the Layer?

      r21 python • • bentraje
      4
      0
      Votes
      4
      Posts
      534
      Views

      ferdinandF

      Hi,

      if I am not overlooking something here, the function recurse_hierarchy is neither recursive nor will it retrieve the layers for all objects in the scene. It will retrieve the layers for all siblings of the passed node, that were born after that node.

      You probably made a mistake copying your code or misunderstood what is meant by recursive.

      Cheers,
      zipit

    • mikeudinM

      How to catch SubDialog errors?

      python • • mikeudin
      3
      0
      Votes
      3
      Posts
      411
      Views

      mikeudinM

      Thanks! So will find some workaround.

    • ?

      Getting GeDialog Group Width & Height?

      python • • A Former User
      3
      0
      Votes
      3
      Posts
      331
      Views

      ?

      @r_gigante Thank you, Riccardo! I don't know how I missed that in the documentation, but it is what I needed. 😄

    • ?

      Listening for Selection Events

      python • • A Former User
      5
      0
      Votes
      5
      Posts
      608
      Views

      ManuelM

      hello,

      To retrieve the active object you have to iteration trough the hierarchy. (even GetActiveObject)
      In Python, GetActiveObjects is calling a c++ function so with lots of object it will be faster than iterating the hierarchy with python functions.
      We don't know what the limit is. To mesure that you have to make a bunch of tests with different scenarios and get the mean.

      Cheers,
      Manuel

    • E

      Generator crashes and guidance

      c++ • • eldiren
      13
      0
      Votes
      13
      Posts
      1.8k
      Views

      ManuelM

      Hello,

      please open a new thread for that question, we will probably need your code. You can send it to us using our email [email protected]

      Cheers,
      Manuel

    • ?

      Redrawing GeUserArea in ScrollGroup with Slider Input

      sdk python • • A Former User
      7
      0
      Votes
      7
      Posts
      1.2k
      Views

      ?

      @m_adam Thank you, Maxime, for going to this effort.

    • B

      Integrating a CallCommand() with Built-In Save Dialog?

      r21 python • • bentraje
      3
      0
      Votes
      3
      Posts
      374
      Views

      B

      @m_magalhaes

      Thanks for the confirmation.

    • B

      AddUserData() for In/Exclusion List?

      r21 python • • bentraje
      3
      0
      Votes
      3
      Posts
      393
      Views

      B

      @r_gigante

      Thanks for the response. Works as expected.

    • lasselauchL

      Understanding SetCommandDragId

      • • lasselauch
      6
      0
      Votes
      6
      Posts
      1.1k
      Views

      M

      Correct, and I would say a CommandData id.

    • ?

      Exporting Motion Clips & what are .c4dsrc Files?

      sdk python • • A Former User
      3
      0
      Votes
      3
      Posts
      625
      Views

      ?

      @m_adam
      Hi Maxime, thank you for the quick reply and insight into this. I look forward to trying this.

    • B

      Unable to Add Objects for User Data with In/Exclusion Data Type

      r21 python • • bentraje
      3
      0
      Votes
      3
      Posts
      355
      Views

      B

      Thanks for the explanation. Works as expected.

    • C4DSC

      Plugin not found after switching layout

      r21 c++ • • C4DS
      3
      0
      Votes
      3
      Posts
      495
      Views

      C4DSC

      @s_bach said in Plugin not found after switching layout:

      The ID used with GeDialog::Open() and RestoreLayout() is typically the plugin ID of the CommandData plugin.

      See e.g. activeobject.cpp

      Thanks.
      It had to be something so simple I kept missing when reviewing the code.

    • C4DSC

      GeUserArea lag in R21 versus R20

      r21 r20 c++ • • C4DS
      8
      0
      Votes
      8
      Posts
      1.2k
      Views

      M

      Yes your code could be optimized but we agree with you here this is not really the point, a R20 code is expected to have the same performance with R21 and here this is not the case.

      And @C4DS I agree using GeIsMainThread() == false I would say partially fix the issue (sometimes it works as R20, sometimes not) We keep investigating it.

      Cheers,
      Maxime.

    • S

      How do I compile a plug-in that is compatible with both R20 and R21

      r21 r20 c++ • • sean
      4
      0
      Votes
      4
      Posts
      615
      Views

      r_giganteR

      Hi sean, thanks for reaching out us.

      The broken forward compatibility between R20 and R21 is reported on Changes in R21.
      With regard to backward binary compatibility, it has never been possible to run a plugin built against a more recent API and load on a previous Cinema 4D executable as reported on Portability and Compatibility.

      Best, R.

    • P

      UA is update too often

      r21 r20 python • • pim
      3
      0
      Votes
      3
      Posts
      644
      Views

      P

      Thanks for the answer.
      And yes, you are fully correct. Things should not be done in DrawMsg()

    • P

      Adding my own field to the Preference dialog

      r21 python • • pim
      3
      0
      Votes
      3
      Posts
      405
      Views

      P

      Thank you.
      I will look into it and try it.

    • M

      Grayed out or disabled X button

      • • myosis
      8
      0
      Votes
      8
      Posts
      1.4k
      Views

      M

      @mp5gosu
      This sounds like the solution I was looking for 😅
      Thanks a lot!

      Ps, yes im a noob...

    • J

      std compile error

      r19 c++ • • Jmelon
      6
      0
      Votes
      6
      Posts
      930
      Views

      M

      I know this is quite an old topic, @m_magalhaes @Jmelon it would compile if you put c4d.h at the end of all other STL includes