示例#1
0
 def process(self):
     if self.outputs['data'].is_linked:
         slots = []
         for socket in self.inputs:
             if socket.is_linked:
                 slots.append(socket.sv_get())
         if len(slots) < 2:
             return
         output = self.myZip(slots, self.level)
         if self.unwrap:
             output = preobrazovatel(output, [2, 3])
         self.outputs[0].sv_set(output)
示例#2
0
文件: zip.py 项目: elfnor/sverchok
 def process(self):
     if self.outputs['data'].is_linked:
         slots = []
         for socket in self.inputs:
             if socket.is_linked:
                 slots.append(socket.sv_get())
         if len(slots) < 2:
             return
         output = self.myZip(slots, self.level)
         if self.unwrap:
             output = preobrazovatel(output, [2, 3])
         self.outputs[0].sv_set(output)
示例#3
0
 def process(self):
     if self.outputs['data'].is_linked:
         data = self.inputs['data'].sv_get()
         userlevelb = literal_eval('['+self.Sverch_LisLev+']')
         self.outputs['data'].sv_set(preobrazovatel(data, userlevelb))
示例#4
0
文件: levels.py 项目: elfnor/sverchok
 def process(self):
     if self.outputs['data'].is_linked:
         data = self.inputs['data'].sv_get()
         userlevelb = literal_eval('['+self.Sverch_LisLev+']')
         self.outputs['data'].sv_set(preobrazovatel(data, userlevelb))