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. yaya
    3. Best
    Y
    • Profile
    • Following 0
    • Followers 0
    • Topics 13
    • Posts 53
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by yaya

    • RE: Replace Plugins in a Running Cinema 4D Instance

      Oh! Forget guys my message above!

      The calling of Python code from C++ plugin in @kbar 's advice does the trick! 🙂

      If someone from the future who will read this thread will need the code example, I just use the code snippet from here: https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_python.html

      and feed to it this code:

      // call it from somewhere
      String code = "import c4d\nimport maxon\nimport os    ";
              code+= "\n\nprint(f'This is simple message')";
              code += "\nos.rename('C:/Code/sdk/plugins/myPlugin/myPlugin.xdl64', 'C:/Code/sdk/plugins/myPlugin/old_myPlugin.old')"; 
              
      ExecutePythonScript(code, GetActiveDocument());
      

      😄

      posted in Cinema 4D SDK
      Y
      yaya