Page 1 of 1

Action From another action

Posted: Tue Apr 21, 2015 2:59 pm
by _RIGHT_H
hi
how can i execute an action from another action within the same plugin

eg.plugin.Power_ON() . doesn't work

Thanks

Re: Action From another action

Posted: Tue Apr 21, 2015 6:08 pm
by Pako

Code: Select all

eg.plugins.PluginClassName.ActionClassName(*args)
or
action_instance = self.plugin.__dict__['info'].__dict__['actions']['ActionClassName']()
 action_instance(*args)

Re: Action From another action

Posted: Wed Apr 22, 2015 6:23 am
by _RIGHT_H
thank you so much

I think the second solution is better if the plugin multiLoad is enabled