Skip to content

Instantly share code, notes, and snippets.

Created April 23, 2014 10:46
Show Gist options
  • Save anonymous/11210468 to your computer and use it in GitHub Desktop.
Save anonymous/11210468 to your computer and use it in GitHub Desktop.
test
if self.inputs['vertices1'].links and self.inputs['vertices2'].links:
if self.inputs['vertices1'].links and self.inputs['vertices1'].links:
prop1_ = SvGetSocketAnyType(self,self.inputs['vertices1'])
prop1 = Vector_generate(prop1_)
if self.inputs['vertices2'].links and self.inputs['vertices2'].links:
prop2_ = SvGetSocketAnyType(self,self.inputs['vertices2'])
prop2 = Vector_generate(prop2_)
elif self.inputs['matrix1'].links and self.inputs['matrix2'].links:
if self.inputs['matrix1'].links and self.inputs['matrix1'].links:
propa = SvGetSocketAnyType(self,self.inputs['matrix1'])
prop1 = Matrix_location(Matrix_generate(propa))
if self.inputs['matrix2'].links and self.inputs['matrix2'].links:
propb = SvGetSocketAnyType(self,self.inputs['matrix2'])
prop2 = Matrix_location(Matrix_generate(propb))
# equivalent, logically?
if self.inputs['vertices1'].links and self.inputs['vertices2'].links:
prop1_ = SvGetSocketAnyType(self,self.inputs['vertices1'])
prop1 = Vector_generate(prop1_)
prop2_ = SvGetSocketAnyType(self,self.inputs['vertices2'])
prop2 = Vector_generate(prop2_)
elif self.inputs['matrix1'].links and self.inputs['matrix2'].links:
propa = SvGetSocketAnyType(self,self.inputs['matrix1'])
prop1 = Matrix_location(Matrix_generate(propa))
propb = SvGetSocketAnyType(self,self.inputs['matrix2'])
prop2 = Matrix_location(Matrix_generate(propb))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment