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

    Large Delay with Python Interpreter in PyCharm

    Cinema 4D SDK
    r20 python sdk
    3
    3
    652
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User
      last edited by A Former User

      Hello,
      I am using c4dpy.eye in PyCharm. The autocomplete is working nicely.

      When I run a simple test script with it:

      print("Hello World")
      

      Then click Run, there is about a 7-8 second delay before I get this result:

      "C:\Program Files\MAXON\Cinema 4D R20\python.exe" "C:/Users/Kevin/PycharmProjects/Cinema 4D/Test.py"
      Hello World
      removeCopyedDoc()
      : No error
      resetOrbxRootGraphs()
      : No error
      deleteStoredCopyMats()
      : No error
      
      Process finished with exit code 0
      

      Any ideas why is there such a huge delay? Also, what are the 'No error' lines all about?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • M
        mp5gosu
        last edited by

        The delay may be caused by the fact, that c4dpy is actually some kind of a headless Cinema 4D installation.
        So, everything that is core part of C4D is loaded, that may take some time.

        Also, PyCharm tends be slower launching all debugging subsystems compared to VS Code.

        1 Reply Last reply Reply Quote 2
        • M
          m_adam
          last edited by

          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.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          1 Reply Last reply Reply Quote 1
          • First post
            Last post