Grasshopper

algorithmic modeling for Rhino

Hi,

In this field, in the input of a component. What is it used for? What's the syntax? I tried writing stuff like x*2 and such but with no luck. 

Best regards

- Björn

Views: 10113

Replies to This Discussion

you should use the name of the param you are selecting, in your case, 2 x play *2. But the space character and possibly the number "2" would mess the expression and result in the following error message : "1. Parameter name does not conform to expression syntax variable naming rules. If you want to use Expressions in this parameter you'll have to change the name."

Simply name it "play" and fill the expression with "play*2". If you want to keep complete name for params, use "_" as space character or CamelCase and no numbers in the name.

At present most expression indeed use the Parameter name. This was a bad decision I made a long time ago, it would have been better to use x for everything. It's more predicable and less work to copy/paste expressions.

--

David Rutten

david@mcneel.com

Tirol, Austria

Thanks both of you.

and it is changed to x now...

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service