algorithmic modeling for Rhino
You don't return any value from the function. try something like
def ok(x):
if p==x: return u
else: return v
or in a clean 'pythonic' way
def ok(x):
return u if p==x else v
Thanks Mostapha, your answer was very helpful.
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by