Hey @ferdinand ,
I already tried the c4d.gui.GeUpdateUI and c4d.EventAdd before with no luck, that's why i switched to setting the active document. Thank you for the warning though, i wasn't aware of this so i'll keep an eye for it !
Best regards
Hey @ferdinand ,
I already tried the c4d.gui.GeUpdateUI and c4d.EventAdd before with no luck, that's why i switched to setting the active document. Thank you for the warning though, i wasn't aware of this so i'll keep an eye for it !
Best regards
Hey @ferdinand ,
I already tried the c4d.gui.GeUpdateUI and c4d.EventAdd before with no luck, that's why i switched to setting the active document. Thank you for the warning though, i wasn't aware of this so i'll keep an eye for it !
Best regards
FYI : I managed to "fix" the issue with the navigation bar with a simple trick :
c4d.documents.SetActiveDocument(c4d.documents.GetActiveDocument())
This makes C4D refresh in a way, taking the main thread back and re-adding its menu to the MacOS navigation bar
Hello Ferdinand,
Thank you for the very fast answer. I was expecting this kind of answer, as it's quite out of the initial scope of the SDK.
Unfortunately, we cannot really switch to anything other than matplotlib, as we already have a complete functioning workflow, with downsampling & all.. We need to keep it interactive.
My idea right now is to find a way to make C4D to take back the main thread, so i'll make a few tests (creating a new object in the scene, creating a new scene, ...) so the users don't have to do anything.
Have a nice day !
Hello everyone,
So I have a very niche issue. We developed a Python plugin for C4D for our client.
One of the use case in this plugin is to be able to display graphs inside of C4D, in a window.
To do this, we used matplotlib. After some testing and issues, we managed to have everything working, with the graphs opening in an interactive mode, ...
FYI, the matplotlib backend we had to use is Qt5Agg, with PyQt5 installed.
The only issue we have is on MacOS. When the graphs display, the app icon (on the dock) change to the matplotlib one, instead of C4D (not a big issue really).
The bigger issue is the navigation bar (on top of the screen, with Files, Edit, Window, ...) completely changes and the C4D menus disappear.
The only way to make it come back, once the graphs are closed, is to click the "new scene" button. That way C4D takes back the main thread and displays the menu again (the logo on the dock doesn't change though).
So my questions are :
Thank you in advance !