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
    1. Maxon Developers Forum
    2. GSenechal
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 1
    • Controversial 0
    • Groups 0

    GSenechal

    @GSenechal

    1
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    GSenechal Unfollow Follow

    Best posts made by GSenechal

    • RE: MacOS : Matplotlib in C4D

      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

      posted in Cinema 4D SDK
      G
      GSenechal

    Latest posts made by GSenechal

    • RE: MacOS : Matplotlib in C4D

      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

      posted in Cinema 4D SDK
      G
      GSenechal
    • RE: MacOS : Matplotlib in C4D

      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

      posted in Cinema 4D SDK
      G
      GSenechal
    • RE: MacOS : Matplotlib in C4D

      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 !

      posted in Cinema 4D SDK
      G
      GSenechal
    • MacOS : Matplotlib in C4D

      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 :

      • has anybody ever had this issue
      • is there a way we can "refresh" C4D to make it take back the hand on the main thread and refresh the navigation bar without having the user click anywhere

      Thank you in advance !

      posted in Cinema 4D SDK python macos 2024
      G
      GSenechal