Grasshopper

algorithmic modeling for Rhino

Hi David,

Please would you implement the following:

When [Expression] doesn't have any inputs it will generate a String for the Expression you have created using the Expression Designer

I think this would be particularly useful when showing Functions outside of [Evaluate]. Also it would be extremely useful  when passing a user defined function into a Cluster.

EDIT: The R could change to an S to show that its a string being output also it would loose the Red Warning Colour

Views: 826

Replies to This Discussion

Just to be clear, the parenthesis in the panel should not be added right? It's just a straight text copy of the expression.

--

David Rutten

david@mcneel.com

Tirol, Austria

Also, it is possible to write an expression that doesn't require any variables. What needs to happen in this case?

--

David Rutten

david@mcneel.com

Tirol, Austria

What about having A context Menu Option for String Output

I've now got this:

If the expression fails to evaluate (this may be more unpredictable than you'd think) and there are no input parameters, then the string is outputted as text data. If there are one or more inputs then general error messaging kicks in and NULL will be outputted.

Also if the expression evaluates correctly, then the result is outputted. This leads potentially to inconsistent behaviour, but probably not yet under the current conditions.

--

David Rutten

david@mcneel.com

Tirol, Austria

Excellent! Thank you

Sorry the Parenthesis were left over from the panel I used before I had the idea.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service