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
    • Login

    Problems with Reloading Python Plugins in Cinema 4D 2024.1.0

    Cinema 4D SDK
    2024 python
    5
    14
    2.5k
    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.
    • M
      m_adam
      last edited by

      Hi having the ability to reproduce your issue would be the first step. so would it be possible for you to share one of your plugin demonstrating the issue at [email protected] ?
      How do you see that it fail to be loaded? Normally you can only change already loaded plugin, with reload plugin you are not allowed to register new plugin. So at least your plugin should be still there.

      And finally what is your OS?

      Thanks in advance.
      Cheers,
      Maxime.

      MAXON SDK Specialist

      Development Blog, MAXON Registered Developer

      1 Reply Last reply Reply Quote 0
      • RenatoTR
        RenatoT
        last edited by

        Yes, my plugin loads and runs correctly on both 2023 and 2024. It registers and works. The difference is that 'Reload Python Plugins' after source code modifications works on 2023, but not on 2024. I have developed about ten plugins on the previous versions... but on 2024 the code is not updated even though in the Python console the plugin writes the message of successful loading. Simply, the code remains the same as before. On the older versions of Cinema, I have never encountered this problem. If it works correctly for you, then the problem is in my installation.

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

          Hi just to let you know I was able to reproduce the issue, it seems that only some part are loaded and not everything e.g. in an ObjectData, the GetVirtualObject method is not correctly reloaded. I'm investigating the issue and hopefully will be able to fix it soon, but I doubt there will be any workaround possible for the 2024.0 and 2024.1 release.

          Cheers,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          RenatoTR 1 Reply Last reply Reply Quote 0
          • bacaB
            baca @RenatoT
            last edited by

            Hi @RenatoT

            Looks like existing instances of the plugin aren't updated after "Python Reload", or partially updated.
            That's just my thought, but faced similar issue when switched to C4D2024.

            So now I'm closing current project(s), and only blank project is remain opened in app.
            Then execute "Reload Python plugins".
            The re-open test scene, or create new from scratch.

            Not optimal, but more or less stable on my macOs machine.

            1 Reply Last reply Reply Quote 0
            • RenatoTR
              RenatoT @m_adam
              last edited by

              @m_adam said in Problems with Reloading Python Plugins in Cinema 4D 2024.1.0:

              Hi just to let you know I was able to reproduce the issue, it seems that only some part are loaded and not everything e.g. in an ObjectData, the GetVirtualObject method is not correctly reloaded. I'm investigating the issue and hopefully will be able to fix it soon, but I doubt there will be any workaround possible for the 2024.0 and 2024.1 release.

              Thank you Maxime, I hope that the issue will be resolved as soon as possible because I am unable to use the 2023 version due to compatibility problems with the Nvidia drivers.

              1 Reply Last reply Reply Quote 0
              • RenatoTR
                RenatoT
                last edited by

                @baca So I'm not alone. Many thanks for your suggestion 🙂

                1 Reply Last reply Reply Quote 0
                • RenatoTR
                  RenatoT
                  last edited by

                  @maxime I have also noticed that on the 2024 version, in case of an error in the .res file, classic syntax errors, no dialog is opened to warn of the error and indicate the line in the res file where the problem is. On the 2024 version, it simply does not load the GUI and does not report anything.

                  1 Reply Last reply Reply Quote 0
                  • K
                    kalugin
                    last edited by

                    I've also had the same issues with an ObjectData plugin. I've also noticed a huge memory leak by simple clicking the reload python plugins button, but that could have been something from my code.

                    1 Reply Last reply Reply Quote 0
                    • gheyretG
                      gheyret
                      last edited by

                      I had the same problem yesterday works

                      www.boghma.com

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

                        Hi @kalugin there was a memory leak in 2024.0 but it was fixed in 2024.1. Could you send us a file at [email protected] and the plugin to test, as we would like to ensure the memory leak is indeed gone.

                        Regarding the issue, it will be fixed in an upcoming release.
                        Cheers,
                        Maxime.

                        MAXON SDK Specialist

                        Development Blog, MAXON Registered Developer

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

                          Hi thanks a lot for your report, the issue regarding Reloading Python Plugin not working as expected have been fixed in 2024.2.

                          Cheers,
                          Maxime.

                          MAXON SDK Specialist

                          Development Blog, MAXON Registered Developer

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