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

    How do i check if another Plugin is loaded in Python?

    Cinema 4D SDK
    r21 python
    2
    2
    440
    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.
    • FSSF
      FSS
      last edited by

      My code depends on another Plugin to be completely loaded before it can be executed. How do ich check this in Code?

      I once got advice from @ferdinand to wait for All-Plugins-Start:
      "..I assume it is a plugin tied into PluginStart()? Be aware that depending on the plugin message, Cinema 4D might not yet have booted fully, you should not rely on the active document and similar things before C4DPL_STARTACTIVITY has been emitted. The earlier you are in the boot process, the less libraries and systems will work.."

      But i logged those out and it always seemed to be called before the commandline arguments are processed. If this is recieved what guarantees do i have on the other plugin black boxes?

      That all have completed loading? Including gui-components? Is there another way to check if any plugin python is busy in the background?

      Regards Florian

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @FSS
        last edited by

        Hello @fss,

        Thank you for reaching out to us. I understand your general question, but some aspects are unclear to me.

        • What plugin interfaces/hooks are involved (CommandData, ObjectData, ...)?
        • Your posting somewhat implies that you want to rely inside PluginStart (which is not technically part of a plugin interface) on another plugin being loaded, is that true?
        • If you are in PluginStart(), at which boot message (the ones emmited to PluginStart) are you trying to determine if some plugin X has been registered?

        But i logged those out and it always seemed to be called before the commandline arguments are processed.

        • I am not quite sure what is meant with 'logged those out' here?

        The quick answer is to call c4d.plugins.FindPlugin to determine if a plugin is accessible, but depending on what you are trying to do, this might not the right way.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

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