Exemple #1
0
 def __init__(self, inString=''):
     from NodeEditor.modules.sources.DefineTypeVariable import DefineTypeVariable
     typ, val = DefineTypeVariable(inString).returntype()
     if 'tuple' in typ:
         self.outval = val
     else:
         self.outval = None
Exemple #2
0
 def __init__(self, ListString=['']):
     from NodeEditor.modules.sources.DefineTypeVariable import DefineTypeVariable
     typ, val = DefineTypeVariable(ListString).returntype()
     print(typ, val)
     if typ == 'liststr':
         self.outval = []
         for el in ListString:
             self.outval.append(int(el))
     else:
         self.outval = None
Exemple #3
0
 def __init__(self, inString=''):
     from NodeEditor.modules.sources.DefineTypeVariable import DefineTypeVariable
     listType = [
         'float', 'int', 'str', 'bool', 'path', 'listfloat', 'listint',
         'liststr', 'listbool', 'listpath', 'arrayfloat', 'arrayint',
         'arraystr', 'arraybool', 'arraypath'
     ]
     self.listVar = []
     for i in range(0, len(listType)):
         self.listVar.append(None)
     typ, val = DefineTypeVariable(inString).returntype()
     ind = listType.index(typ)
     self.listVar[ind] = val