Problems with Reloading Python Plugins in Cinema 4D 2024.1.0
-
Hi Maxime, all my plugins that I was editing on the 2023 version (which I can no longer use because it crashes with my RTX 4080 OGL drivers) are not being loaded anymore on the 2024 version after modification, and I have to close and reopen Cinema. I don't have duplicate sources or anything else. It simply doesn't reload them as the old versions used to do.
-
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. -
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.
-
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. -
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.
-
@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.
-
@baca So I'm not alone. Many thanks for your suggestion
-
@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.
-
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.
-
I had the same problem yesterday works
-
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. -
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.