On 06/01/2013 at 15:41, xxxxxxxx wrote:
is there a way to influence the order in which c4d is loading your plugins when you have a
multiple folder structure ? as an example :
---mainpluginfile.pyp (contains MainPluginClass)
------subpluginfile.py (contains SubPluginClass)
c4d is loading these pluins in the order of the folder tree, MainPluginClass is being loaded
first and after that SubPluginClass is being loaded. which causes some problems for me,
because MainPluginClass needs SubPluginClass to exist on its initialization, because it
creates an instance of SubPluinClass in its constructor.
as a workarround i am listening with PluginMessage() for the id c4d.C4DPL_STARTACTIVITY
to call a Init() method in my MainpluginClass which then creates the instance of SubPluginClass.
is there a more elegent way to do this - or in other words, make c4d load SubPluginClass first
and after that MainPluginClass ? I hope this does make any sense for you