Custom Build C4D.2024.py310 ?
-
Hello,
We wanted to know if there are custom versions of C4D 2024 with python 3.10?
If so, where can we find them?
If not, is there a way to return from the 3.11 to 3.10 with 2024?Merci !
-
Hello @UMD,
Thank you for reaching out to us. No, there is no Python 3.10 variant of Cinema 4D 2024 . Our Python VM is quite deeply integrated into Cinema 4D and up- or downgrading it is more work than you might think. It is not intended that users up- or downgrade a Python version themselves.
May I ask why you need Python 3.10 over Python 3.11? Since the release removed only very obscure features, the scary version update will be 3.13, as it will remove quite a bit of deprecated legacy functionality.
Cheers,
Ferdinand -
Hello @ferdinand,
To answered to your question, our TD said:
"Our pipeline uses PySide2 to display UIs, however from python 3.11 onwards only PySide6 is available. We plan on switching to it eventually but it will take some time, meaning we will not be able to use C4D 2024 with our pipeline in the meantime."Thanks
-
Hello @UMD,
There is indeed not much that you can do here. All I can do is recommend either using an abstraction layer around your Qt bindings such as QtPy or decouple your Qt UI from Cinema altogether using a server-client model where Cinema 4D and its Python VM are the server and execute all the logic. And where clients plug into this server, running in a Python VM of your choice so that you can match whatever the GUI demands; we talked about this pattern here.
But both won't help you with your problem at hand, because doing both would be just as much work as updating your UI code. But depending on how vast your code is, abstracting things a bit might be good idea for the future.
Cheers,
Ferdinand -
Hi @UMD
I would like to ask you how to import the Pyside library in to Cinema 4D, I always get a "DLL load failed" error when importing.
Thanks
-
Hi, thank you for your answers !
We were actually planning on switching to
QtPy
since our current abstraction layerQt.py
does not wrap PySide6 yet. However this will take some time to implement, and @UMD was very much looking forward to using C4D 2024 as soon as possible.We are confronted to another problem that does not allow us to switch to C4D 2024 yet : the prebuilt PySide6 wheels available on PyPI are apparently not compatible with C4D's python DLL's.
The server/client model you suggest is something that would circumvent both of those issues, and it is in fact something that we have discussed many times internally, but changing our Pipeline's model at this point in time would take at least a year of planning and implementation.
@gheyret PySide is not bundled with C4D, you must install PySide yourself (using the wheels built by Dan Bradham for C4D since the prebuilt ones from PyPI are not compatible), and then you'll be able to import and use PySide in C4D
They have yet to build one for PySide6 though, so using PySide in C4D 2024 will not be possible for now (there is an issue opened about this).In any case, thank you for your time @ferdinand, we will figure out what to do internally.
-
Hi @Unit-Image-Dev
Thank you for your reply.
That's so cool! and i will try it. -