def process(self): if not self.outputs['data'].is_linked: return slots = [] for socket in self.inputs: if socket.is_linked: slots.append(socket.sv_get()) if len(slots) == 0: return list_result = joiner(slots, self.JoinLevel) result = list_result.copy() if self.mix_check: list_mix = myZip_2(slots, self.JoinLevel) result = list_mix.copy() if self.wrap_check: list_wrap = wrapper_2(slots, list_result, self.JoinLevel) result = list_wrap.copy() if self.mix_check: list_wrap_mix = wrapper_2(slots, list_mix, self.JoinLevel) result = list_wrap_mix.copy() self.outputs[0].sv_set(result)
def python_join(slots, level, mix, wrap): if wrap: if mix: list_mix = myZip_2(slots, level) list_wrap_mix = wrapper_2(slots, list_mix, level) result = list_wrap_mix.copy() else: list_result = joiner(slots, level) list_wrap = wrapper_2(slots, list_result, level) result = list_wrap.copy() else: if mix: list_mix = myZip_2(slots, level) result = list_mix.copy() else: list_result = joiner(slots, level) result = list_result.copy() return result
def process(self): if 'data' in self.outputs and self.outputs['data'].is_linked: slots = [] for socket in self.inputs: if socket.is_linked: slots.append(socket.sv_get()) if len(slots) == 0: return list_result = joiner(slots, self.JoinLevel) result = list_result.copy() if self.mix_check: list_mix = myZip_2(slots, self.JoinLevel) result = list_mix.copy() if self.wrap_check: list_wrap = wrapper_2(slots, list_result, self.JoinLevel) result = list_wrap.copy() if self.mix_check: list_wrap_mix = wrapper_2(slots, list_mix, self.JoinLevel) result = list_wrap_mix.copy() self.outputs[0].sv_set(result)