Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Python plugin priority

    Cinema 4D SDK
    python
    2
    3
    437
    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.
    • fwilleke80F
      fwilleke80
      last edited by

      Hi there,

      I asked this question kind of included in another post, but it just reached a new level of importance for us 😄

      Is there a way to set a Python plugin's init priority? In the C++ SDK, a function called "SetPriority();" is still mentioned, but not documented anymore. In Python, it doesn't seem to exist. The C4DPL_INIT_ constants are still there.

      Thanks in advance & greetings from Berlin,
      Frank

      www.frankwilleke.de
      Only asking personal code questions here.

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @fwilleke80 no this is not possible.

        Note that there is no mention of SetPriority in the C++ SDK API, in the latest online documentation. This function was renamed SetPluginPriority.

        Just for your information.

        1. Cinema 4D load all modules (dll), the order is automatically handled by the source processor but any dependencies can be added in some rare cases where the automatic things fail with MAXON_DEPENDENCY_ON_MODULE.
        2. All C++ plugins are loaded according to there priority (aka SetPluginPriority).
        3. All Python plugins are loaded from a custom internal message to the python module.
        4. C4DPL_STARTACTIVITY is sent to all plugins.

        Cheers,
        Maxime

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • fwilleke80F
          fwilleke80
          last edited by

          OK, thanks!

          www.frankwilleke.de
          Only asking personal code questions here.

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