dlarsson
09-11-2006, 01:10 PM
Hi!
I'm doing some mel scripting that loads a plugin and then calls a command that is in the plugin. The plugin is quite heavy to load and it takes some time before it's completely loaded, however the script continues executing while the plugin is being loaded.
This means that when calling a command directly after loadPlugin is executed it won't find the command since the plugin is not completely loaded.
Is it possible to wait for a plugin to load completely in some way to avoid calling commands before they are available?
the situation looks a bit like this:
...
loadPlugin "myPlugin.mll";
$jox = `myCmd -jox`;
...
I'm doing some mel scripting that loads a plugin and then calls a command that is in the plugin. The plugin is quite heavy to load and it takes some time before it's completely loaded, however the script continues executing while the plugin is being loaded.
This means that when calling a command directly after loadPlugin is executed it won't find the command since the plugin is not completely loaded.
Is it possible to wait for a plugin to load completely in some way to avoid calling commands before they are available?
the situation looks a bit like this:
...
loadPlugin "myPlugin.mll";
$jox = `myCmd -jox`;
...
