Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Register
    • Register
    • Login

    Autocomplete successful but symbol IDs are unrecognized (on Pycharm)

    Cinema 4D SDK
    r20 python
    3
    8
    1.3k
    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.
    • B
      bentraje
      last edited by

      Hi,

      I made the c4dpy.exe (python.exe) the project interpreter.
      The autocomplete is functioning but the symbol IDs are not recognized.

      You can see an illustration of the problem here:
      https://www.dropbox.com/s/q7gwbak05iek958/c4d124_some_code_not_recognize.png?dl=0

      is there a way around this? Thank you

      mikeudinM 1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi, @bentraje there is actually nothing that you can do about it.
        We decided to not include symbols since with our previous test and the huge amount of symbols cinema 4d get, it really really slow down some IDE.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 1
        • B
          bentraje
          last edited by

          @m_adam

          Thanks for the response. May I confirm that the same is also true for Visual Studio (i.e. no symbols included)? Or is this specific only to Pycharm,?

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

            Its true for every IDE.

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

            1 Reply Last reply Reply Quote 1
            • B
              bentraje
              last edited by

              Gotcha. Thanks for the response!

              1 Reply Last reply Reply Quote 0
              • mikeudinM
                mikeudin @bentraje
                last edited by

                @bentraje You have to edit your
                "C:\Program Files\MAXON\Cinema 4D R20\resource\modules\python\libs\python27\c4d_init_.py"
                file by adding all symbol ID's as module variables.

                pycharm_example3.png

                Check out an example file, make sure you have a backup!🤞

                Checkout my python tutorials, plugins, scripts, xpresso presets and more
                https://mikeudin.net

                1 Reply Last reply Reply Quote 3
                • B
                  bentraje
                  last edited by

                  @mikeudin

                  Thanks Mike for the file! Works as expected. I have autocomplete now for the symbol IDs 🙂

                  Have a great day ahead!

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

                    Thanks, Mike for providing them, as said before be aware that if you encounter slowdown for the autocompletion and in typing in your IDE, it may come from here 🙂

                    Cheers,
                    Maxime.

                    MAXON SDK Specialist

                    Development Blog, MAXON Registered Developer

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