Grasshopper

algorithmic modeling for Rhino

Expression component breaks when "Draw full names" is selected?

As an example, given the expression "x + y" - this works fine when display -> draw full names is false.

However, when it is selected, the following error is thrown: "1. Parameter "Variable x" has an invalid name. Only use alphanumeric characters and don't start with a number."

I searched the discussion board but could not find any discussion of this - to me, it seems to take variable names from labels.

Is there any guide to how to format expression syntax in grasshopper? Does using "draw full names" break important functionality in the program?

Views: 787

Replies to This Discussion

The Grasshopper forum search function didn't turn up anything, but a google search did. I guess the forum is tired of this question, since the last several have gone unanswered.

http://www.grasshopper3d.com/forum/topics/expression-component-misb...
http://www.grasshopper3d.com/forum/topics/draw-full-names-with-expr...
http://www.grasshopper3d.com/forum/topics/expression-editor-with-dr...

The solution is to rename the variables: Variable x -> x (or anything else without a space).

This still seems like a bug, since modifying display shouldn't affect the behavior of a script - why can't x and y keep the same names (rather than Variable x) when Display full names is activated?

The last post you linked to is in the errors & bugs subforum and seems to be the right place to bring this bug back up.

I guess it turned into a bug report once I found the answer myself - until that point I was hoping someone would help me with my problem.

I don't think it's possible to relocate this thread now - please let me know if there is.

I just meant that you could post a reply to the other discussion asking for a bug fix so that all the requests are grouped together.

Still you should keep in mind that this specific bug would be considered minor since most people don't work with "full names" on and also there is a workaround at least...

Also David Rutten has made clear that there will probably not be any more updates until GH 2 is released, so this would have to wait until then, I guess. 

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