Grasshopper

algorithmic modeling for Rhino

Hi there,

I have a Python definition set up below and it is returning null. I must be missing something obvious..

I am trying to get python to return one of two lists, if InAngle = 0 then return list B and if not return list A.

import Rhino
import rhinoscriptsyntax as rs

InAngle = x
VariableA = y
VariableB = z

OutOutput = []

if InAngle == 0:
    OutOutput.append(VariableB)
else:
    OutOutput.append(VariableA)

Thanks for any help!

Views: 6067

Attachments:

Replies to This Discussion

Add  a=OutOutput at the end.

Perfect, thanks Hyungsoo Kim!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service