• Polygon dimensions

    Cinema 4D SDK python r20
    4
    1
    0 Votes
    4 Posts
    1k Views
    r_giganteR
    Hi Pim, thanks for reaching out us. With regard to your question, given for comments from Cairyn, I recommend to refine your approach and to look on the web since there are a few different strategies to find the largest inscribed rectangle in a non-convex polygon (among them I recommend having a look at this). With regard to the points walking direction for a given polygon this is defined by the polygon normal and the left-hand rule and it should definitively not be randomly defined. Cheers, Riccardo
  • Large Delay with Python Interpreter in PyCharm

    Cinema 4D SDK r20 python sdk
    3
    0 Votes
    3 Posts
    715 Views
    M
    Hi @blastframe, I can only confirm what's @mp5gosu said, and confirm that c4dpy is a complete Cinema 4D executable, just opened as a python interpreter mode. So nothing to do here, unfortunately. Cheers, Maxime.
  • 0 Votes
    3 Posts
    635 Views
    M
    Hi @bentraje, since you rotate the axis (with SetMg) you also need to update the tangents according to the correct axis since tangents are in local space of points positions which are also in local space of the object. But as you figured is more rigging than a programming issue. And if you already solve the issue congratz! Cheers, Maxime.
  • Pycharm - Invalid Python SDK

    Cinema 4D SDK r20 python sdk
    3
    1
    0 Votes
    3 Posts
    11k Views
    ?
    @m_adam said in Pycharm - Invalid Python SDK: Hi, @blastframe thanks for contact us. So far we never encounter this issue and we are not able to reproduce it so few ideas to try: Make sure you have permission to write in the Cinema 4D folder and subfolder. Flush the cache, https://stackoverflow.com/a/45099651. Send us your PyCharm log, see https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files Cheers, Maxime. Hi @m_adam, Thank you for the reply. I ran PyCharm as an Administrator and flushed the cache. I still received the same error. When I looked at the log, I found a lot of missing file errors, which made me think I had the python.exe (c4dpy.exe) file in the wrong location. When I moved the file to the same folder as the R20 .exe, PyCharm started working. I was confused about the file location because, while in the Install instructions from the C4D Python SDK Documentation has the c4dpy in the C4D folder, this image made it seem like it could exist in a separate folder: [image: 1558553507512-c4dpy_pycharm_win2.png] I would have expected a file location similar to the default Windows location: C:\Program Files\MAXON\Cinema 4D R20\python.exe Thank you again. I have one follow-up question that I'll ask as a new topic.
  • ObjectData plugin Draw() question

    Cinema 4D SDK python r19
    4
    0 Votes
    4 Posts
    1k Views
    chuanzhenC
    @m_magalhaes Thanks,i will try to use C++
  • Disable a tag from Python

    Cinema 4D SDK
    4
    0 Votes
    4 Posts
    1k Views
    B
    Sorry for the delay! Thanks for the help; I did manage to get it working. The ability to drag any control to the console is very useful, so thanks for that tip in particular. I'll take a look at those links, Maxime. Sorry for the hassle.
  • Set Keyframes through a Python Tag

    Cinema 4D SDK r20 python
    9
    0 Votes
    9 Posts
    3k Views
    B
    @m_adam Gotcha. Work as expected. Thanks for the response. Have a great day ahead!
  • Splitting Selections maintaining Point Order

    Cinema 4D SDK r20 python
    6
    2
    0 Votes
    6 Posts
    1k Views
    M
    A CRC or a Checksum is basically a way to uniquely identify data. https://www.howtogeek.com/363735/what-is-a-checksum-and-why-should-you-care/
  • Bug on GetActiveObjects() on R20.057?

    Cinema 4D SDK r20 python
    4
    0 Votes
    4 Posts
    1k Views
    ManuelM
    Hello, nothing more to add here except that we confirm and thanks @C4DS for his answer. Cheers Manuel
  • Cannot modify Lens Effects

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    715 Views
    S
    @m_adam Thank you. Thank you very much!
  • Converting COFFEE to Python

    Moved Cinema 4D SDK python r20
    3
    0 Votes
    3 Posts
    2k Views
    M
    Any news? I turned your topic as solved, but feel free to ask questions, or bump it again if you need it. Cheers, Maxime.
  • Hide the Generic Tabs of an Subject

    Cinema 4D SDK r20 python
    5
    0 Votes
    5 Posts
    877 Views
    B
    @m_adam Oh okay. Thanks for the confirmation. Have a great day ahead!
  • Option to make Python Console in a "Word Wrap" Mode

    General Talk r20 python
    6
    0 Votes
    6 Posts
    1k Views
    B
    @m_adam Ah gotcha. I can only access perpetual versions. C4D 2023 was not made available for perpetual. Anyhow, thanks for the confirmation. Will close the thread.
  • Move just the axis of a polygonal object

    General Talk
    10
    0 Votes
    10 Posts
    3k Views
    ManuelM
    hi, when you will be sure that it's solved, don't forget to mark this thread as solved please. Cheers Manuel
  • DrawLine Obscured by objects

    Cinema 4D SDK python
    5
    1
    0 Votes
    5 Posts
    1k Views
    chuanzhenC
    @m_magalhaes Thanks ,it works well,I modified the code according to your answer. 1 draw line not obscured by any object.solved 2 before i just draw line in MouseImput() (not add Draw() funtion),as above pic/code, Now i draw line in Draw(),it works well.solved
  • 0 Votes
    9 Posts
    2k Views
    B
    @Cairyn Thanks for the code. It works as expected. @s_bach Thanks for the reference. Reading it at the moment and the whole base container is much more complicated than I thought it would be.
  • GetLayerData() for Xref

    Cinema 4D SDK r20 python
    3
    0 Votes
    3 Posts
    580 Views
    M
    Hi @pim, does the solution provided is ok for you? EDIT: I turned it into solved but please feel free to open it again if you need to.
  • Convenience function for Combobox

    Cinema 4D SDK r19 python macos
    5
    0 Votes
    5 Posts
    1k Views
    S
    Thank you again, @m_adam! I ended up using the C++ method, and it worked like a charm. Also, I appreciate the link to the *args and **kwargs at pythontips.com. It was very helpful to understand those concepts. I do have (many) more questions, but I'll start new posts since they're not related to this topic. My Best, Eric
  • 0 Votes
    3 Posts
    604 Views
    B
    @m_adam Interesting. I never thought of doing it that way. Thanks for the response. It works as expected. Have a great day ahead!
  • merge BaceCointainer from one object to another.

    Cinema 4D SDK python
    6
    0 Votes
    6 Posts
    1k Views
    ManuelM
    yea, sometime a direct approach is better. By the way, and for those who are reading this post, you can use the ids found in Ospline.h (i'm pretty sure you found them but just in case) SPLINEOBJECT_INTERPOLATION_NONE SPLINEOBJECT_INTERPOLATION_NATURAL SPLINEOBJECT_INTERPOLATION_UNIFORM SPLINEOBJECT_INTERPOLATION_ADAPTIVE SPLINEOBJECT_INTERPOLATION_SUBDIV Cheers Manuel