Grasshopper

algorithmic modeling for Rhino

Hello, 

When I input the values for 'a' and 'b' within the python component the algorithm works fine; however, when I use number sliders set to 'item access' and type hint 'float', I get the unsupported operand error. This usually works. 

Thank you. 

Views: 455

Attachments:

Replies to This Discussion

Hi Eric,

You are using the same name both for the first float variable and for the point name - 'a'.
Just change one of them to something else:


oh man... 

I've really outdone myself on this one. 

Thanks

You're overwriting the variable a at line 13 from a float to a GUID (which is returned by the rs.AddPoint() method).

Ah sorry, didn't see that you've already solved it :)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service