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

      Converting COFFEE to Python

      python r20 • • bnash
      3
      0
      Votes
      3
      Posts
      1.4k
      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.

    • chuanzhenC

      ObjectData plugin Draw() question

      python r19 • • chuanzhen
      4
      0
      Votes
      4
      Posts
      1.0k
      Views

      chuanzhenC

      @m_magalhaes Thanks,i will try to use C++☺

    • B

      Set Keyframes through a Python Tag

      r20 python • • bentraje
      9
      0
      Votes
      9
      Posts
      2.3k
      Views

      B

      @m_adam

      Gotcha. Work as expected.
      Thanks for the response.

      Have a great day ahead!

    • ?

      Pycharm - Invalid Python SDK

      r20 python sdk • • A Former User
      3
      0
      Votes
      3
      Posts
      11.0k
      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:
      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.

    • ?

      Large Delay with Python Interpreter in PyCharm

      r20 python sdk • • A Former User
      3
      0
      Votes
      3
      Posts
      652
      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.

    • B

      Unexpected Spline Behavior on Creating IK Spline Tag

      r20 python • • bentraje
      3
      0
      Votes
      3
      Posts
      566
      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.

    • P

      Polygon dimensions

      python r20 • • pim
      4
      0
      Votes
      4
      Posts
      1.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

    • ?

      Splitting Selections maintaining Point Order

      r20 python • • A Former User
      6
      0
      Votes
      6
      Posts
      1.2k
      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/

    • M

      Toolplugin Crash When Close Cinema 4D

      c++ r20 • • mike
      8
      0
      Votes
      8
      Posts
      1.6k
      Views

      M

      @r_gigante Thank you for your answer! it s all fine : )

    • Leo_SaramagoL

      User Data button Python Tag r19 - avoid "index out of depth" console feedback

      r19 python • • Leo_Saramago
      4
      0
      Votes
      4
      Posts
      947
      Views

      Leo_SaramagoL

      @m_magalhaes said in User Data button Python Tag r19 - avoid "index out of depth" console feedback:

      if desc_id.GetDepth() > 1

      Thanks a lot, Manuel! It's perfect now.

    • M

      GeUserarea crash when Redraw() in Message()

      r20 python • • mike
      3
      1
      Votes
      3
      Posts
      730
      Views

      M

      @m_adam oh,i miss this reason,thank you : )

    • O

      Disable SimpleListView Item

      c++ r20 sdk • • Ogers
      2
      0
      Votes
      2
      Posts
      441
      Views

      r_giganteR

      Hi Ogers thanks for reaching out us.

      With regard to your request, I confirm that to deliver the desired functionality you've to stick to TreeView since it's not possible to disable items belonging to a SimpleListView.

      Cheers, Riccardo

    • R

      problems with CAWeightMgr

      r19 python • • ruckzuck
      5
      0
      Votes
      5
      Posts
      1.2k
      Views

      R

      Hi Manuel,

      perfect - in the Script Manager everything works as expected.
      Running the code via python tag isn't important to me - I just wasn't aware of this difference ScriptMgr <> PythonTag concerning the execution of the code.

      Thanks a lot for your solution !

      Cheers,
      Jens

    • Leo_SaramagoL

      User data button Python Tag part 2 - No more Notify Messages! Why?

      python r19 • • Leo_Saramago
      2
      0
      Votes
      2
      Posts
      536
      Views

      Leo_SaramagoL

      I figured it out.

      The missing piece is a listener that's supposed to be added in main(), something like:

      def main(): obj = op.GetObject() bc = c4d.BaseContainer() obj.AddEventNotification(op, c4d.NOTIFY_EVENT_MESSAGE, 0, bc)

      The reason why this was not so obvious earlier today is that I read somewhere that there was no need for adding listeners in main(), that I would be adding unnecessary tasks. This is probably my fault, I may have misinterpreted or assumed things from a different context.

      But, to my defense, I must say that the code that works has no listeners in it. Have a look!

      Well, this is where it gets tricky: the listener code had been there indeed, but I had erased it after a few iterations(because I thought it was overkill).

      This means that the listener is still working despite the fact that I had it erased from the Python Tag code, in other words, it's garbage.

      I hope this helps other users as well as the Maxon team(you guys rule!)

      Thanks for your time,

      Leo

    • D

      Make editable returning strangely

      r20 c++ • • d_schmidt
      10
      0
      Votes
      10
      Posts
      1.5k
      Views

      D

      I understand, that makes sense to me.

      Thank you for the help.

      Dan

    • D

      R20 Alembic Export Crash

      • • dev-vfxboat
      5
      0
      Votes
      5
      Posts
      1.6k
      Views

      R

      Ah I think you're right - I take the object right from the document without a clone or anything. Thank you!

    • S

      This topic is deleted!

      • • sheilan
      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • O

      Adding Custom Tree to TreeView.

      r20 c++ windows • • Ogers
      8
      0
      Votes
      8
      Posts
      1.7k
      Views

      O

      @mp5gosu I have one last question.
      on the thread for custom nodes that you mentioned above there was a file which was posted from Niklas. https://raw2.github.com/PluginCafe/examples/master/treeview/custom-nodes/custom-nodes.cpp
      Since this file was not there anymore and most probably it was a full code of what I am asking for, can it be that you or someone else might have that file somehow?
      That would be a great help.
      Thank you.

    • S

      Force custom file format in LoadDialog()

      python • • sheilan
      2
      0
      Votes
      2
      Posts
      481
      Views

      r_giganteR

      Hi Shellan, thanks for reaching out us.

      Assuming that you refer to the Python general function c4d.storage.LoadDialog() at the current time you can't specify a file format since the value passed as force_suffix even is present is ignored - as written in the documentation - .

      Best, Riccardo

    • D

      GetRealSpline() not returning a result

      c++ r20 sdk • • d_schmidt
      13
      0
      Votes
      13
      Posts
      3.3k
      Views

      ManuelM

      hello,

      @baca
      To help us keep things clear and organized (and tracked), can you please open your own thread referring to this one and ask your question there.

      Thanks and Cheers.
      Manuel