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

    Forcing plugin registration order

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 498 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 16/11/2010 at 12:59, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5-12 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi,

      I have two plugins (two seperate projects) and I would like to make sure that one of them is registered before the other one on Cinema 4D start up. Is there a way to control this, something like a priority queue? I kind of remember that there was a way to do so but I just don´t know where I read it or if my mind plays tricks on me.

      thanks in advance

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 16/11/2010 at 22:23, xxxxxxxx wrote:

        have a look at C4DMSG_PRIORITY in PluginMessage. I think that's what you need

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 17/11/2010 at 03:04, xxxxxxxx wrote:

          thx will check it out

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 23/11/2010 at 05:44, xxxxxxxx wrote:

            ok, unfortunately that´s not what I was looking for. Maybe I also simply didn´t make myself clear enough. What I need is that one plugin is initialised before the other, like plugin_a.cdl is loaded before plugin_b.cdl, so plugin_a.cdl can for example still remove plugin_b.cdl from disk.

            Is there a way to accomplish this? is there maybe a lexicographical order C4D is loading plugins? Matthias?

            thanks

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 23/11/2010 at 05:48, xxxxxxxx wrote:

              ok, it seems c4d is indeed loading the plugins in lexicographical order. At least when I name the one plugin a.cdl and the other b.cdl, then I can remove b.cdl by a.cdl once it was loaded.

              Now what I would need to know is if that is the case on all plattforms and if there is a guarantee that c4d loads them lexicographically.

              Matthias could you ask the developers?

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

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 23/11/2010 at 07:08, xxxxxxxx wrote:

                It seems that loading order of plugins is determined by the plugins folder hierarchy. So yes in general it's lexicographical but consider cases where a plugin resides within another plugin folder.

                consider following hierarchy:

                  
                a1/  
                  a1.cdl  
                  ...  
                  a3/  
                      a3.cdl  
                      ...  
                a2/  
                  a2.cdl  
                  ...  
                

                The plugins are loaded in the order a1, a3, a2 because a3 resides within a1.

                cheers,
                Matthias

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

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 23/11/2010 at 07:15, xxxxxxxx wrote:

                  ok, thanks Matthias. That clears it for me.

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