On 26/08/2017 at 07:02, xxxxxxxx wrote:
I have a tag plugin with some (local) variables I used in the tag.
The variable is initialized in __INIT__() and filled/used in Execute and GetDDescription.
And everything is ok.
However when I render, myList is empty and thus it does not render correctly.
What is the best methode / place to define these variables?
def __init__(self) :
self.myList = []
def Execute(self, tag, doc, op, bt, priority, flags) :
data = tag.GetDataInstance()
self.myList.append(data[inputVar)
....
I also tried to put the initialization in Init(self, op),but that did not work either.
I can use global variables, but then a second same tag will have the same variable values.
-Pim