def __init__(self, pluginName): self.pluginName = pluginName self.plugin = tpc.loadPlugin (_pluginManager, pluginName) if self.plugin is None: raise Exception(tpc.getLastError()) else: lp = self.listOfProperties() for element in lp: self._propertyNames.append (element[0]) tpc.resetPlugin(self.plugin)
def __init__(self, pluginName): self.pluginName = pluginName self.plugin = tpc.loadPlugin(_pluginManager, pluginName) if self.plugin is None: raise Exception(tpc.getLastError()) else: lp = self.listOfProperties() for element in lp: self._propertyNames.append(element[0]) tpc.resetPlugin(self.plugin)
def execute (self): if tpc.executePlugin (self.plugin) == True: return True else: raise Exception(tpc.getLastError())
def execute(self): if tpc.executePlugin(self.plugin) == True: return True else: raise Exception(tpc.getLastError())