algorithmic modeling for Rhino
hi
I'm beginer of rhino, gh and python.
I'm trying to tag a list of 80 surfaces, in to two groups, A-1 to A-40 and B-1 to B-40.
So I tryed to use ghPython.
I writed the script,
import rhinoscriptsyntax as rh
if (x<y):
print "A-"+x
else:
print "B-"+(x-y)
but it thousen't work.
could somebody teach me how to solve this problem, or teach me different way to get a same result.
thank you.
Tags:
Hi zeem, I don't know anything about Python, but you could just use an Evaluate component (Math > Script tab), with the expression:
If(x<y, "A-" & x, "B-" & (x-y))
I really love your avatar b.t.w.:)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by