Plugin loaded event [solved]

mattiascibienmattiascibien Posts: 140

Hello eveyone,

I am currently working on creating a new plugin for Daz Studio which requires to do some processing as soon as the app is loaded.

Is there any way to execute something as soon as a plugin is loaded?

 

<in alternative could it be possible to hook the daApp->started() signal?

Post edited by mattiascibien on

Comments

  • Hello eveyone,

    I am currently working on creating a new plugin for Daz Studio which requires to do some processing as soon as the app is loaded.

    Is there any way to execute something as soon as a plugin is loaded?

     

    <in alternative could it be possible to hook the daApp->started() signal?

    Found a solution.

    You have to create a class derived from DzPlugin with an override startup() method.

    THen export the plugin using DZ_CUSTOM_PLUGIN_DEFINITION(MyDazPlugin);

  • surrealsurreal Posts: 168

    I would have thought that you would run the function you want to execute from the plugin's pane or action constructor function?

    Technically that would be executing it when your plugin is being loaded rather than after you plugin has finished being loaded. But if you put it at the end of the constructor function the difference would be negligible.

    But maybe I don't fully understand your exact requirements.

     

Sign In or Register to comment.