Forcing plugin registration order



  • 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



  • 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



  • 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



  • 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



  • 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?



  • 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



  • 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.


Log in to reply