Grasshopper

algorithmic modeling for Rhino

Has someone an idea why any expression I set on the "construct domain component" generates an error?

Views: 1351

Attachments:

Replies to This Discussion

x+2?

As of the latest version, all expressions use 'x' as a variable instead of the parameter name.

--

David Rutten

david@mcneel.com

x+2 was just an example, OK a stupid one ;)

but I missed that all variables in expressions use x now....I tried it with the list lenght component and that is still working with both, the parameter name and x as a variable.

thank you

Why is this? Woudln't it make sense to keep the same naming convention? Also what if you want to use the value of parameter A in Parameter B ?

Several reasons:

  • It's now much easier to copy-paste expressions between parameters with different names.
  • When switching from regular names to display full names, expressions keep on working.
  • It's no longer a problem that expressions have names which do not adhere to VB naming rules (i.e. starting with a number, having weird characters or containing spaces)
  • It's no longer a problem to have an expression name be the same as a constant (such as e, phi or pi)

--

David Rutten

david@mcneel.com

hello if i want to do the following

1.8 < x < C + Min(A,B), where A and B are known and they can change by slider,

and C is a know value as well.

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