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

    Register Plugin during runtime

    Cinema 4D SDK
    python r20 windows
    2
    3
    717
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Boony2000
      last edited by

      Hi!

      Depending on some outside factors I want to register one (or more) additional commandData plugin(s).
      When I run RegisterCommandPlugin() on a button press however, I get this error:
      EnvironmentError: cannot find pyp file - plugin registration failed

      Is it not possible to add plugins after startup/ during runtime? Or am I doing something else wrong?

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        Hi Boony2000 and thanks for reaching us.

        With regard to your question, the plugin registration can only take place during Cinema 4D start-up. Any further attempt to register a plugin on a later time is not possible and this is by-design.

        Best, Riccardo.

        1 Reply Last reply Reply Quote 2
        • B
          Boony2000
          last edited by

          Ok, thanks Riccardo!
          I'll register them at the start then.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post