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
    • Recent
    • Tags
    • Users
    • Login

    In which order are plugins loaded? [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 413 Views
    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.
    • H Offline
      Helper
      last edited by

      On 12/10/2014 at 08:04, xxxxxxxx wrote:

      In which sequence / order are plugins loaded at cinema 4d startup?
      For example, how can I be sure that plugin A is loaded before plugin B?

      -Pim

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 13/10/2014 at 07:47, xxxxxxxx wrote:

        Hello,

        the order in which Python plugins are loaded depends in the end on the file system. At least on Windows plugins form older folders are loaded before plugins from younger folders.

        May I ask how the order is important for your plugins?

        Best wishes,
        Sebastian

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 13/10/2014 at 08:03, xxxxxxxx wrote:

          My plugin is partly python and partly c++.
          In C++ I am doing my license check. If it fails then that plugin stops.
          The other plugins (python) check to see if the c++ plugin is there or not.
          If it is there: license check was ok, so continue
          If it is not there: license check was not ok, so stop.

          But then of course the c++ plugin must run (register and check) first, before the other plugins register.
          I'm doing this because c++ is more difficult to crack, more than python.

          -Pim

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 13/10/2014 at 08:48, xxxxxxxx wrote:

            Hello,

            Cinema will first load all C++ plugins and call their PluginStart()[URL-REMOVED] function. The Python plugins are loaded after that.

            best wishes,
            Sebastian


            [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              On 14/10/2014 at 07:34, xxxxxxxx wrote:

              Ok, so I am good to go.
              Thanks.

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