Grasshopper

algorithmic modeling for Rhino

Expression input for a variable expression component?

I'm trying to play catch-up after about a year away from Grasshopper, and I'm having trouble figuring out how to make good use out of the Variable Expression component—specifically how I can turn one of it's input parameters into an Expression input parameter instead of an Expression Variant input parameter.  Essentially, I want to write my expression on a yellow sticky note and wire it in (as I do with 2- and 3-variable expression components) instead of hiding it in the Expression Designer so that it's easy to see as I'm working.  Is this possible?  Thanks!

Views: 4013

Replies to This Discussion

Yes plug the panel into F provided that it is a valid expression it will work.

Danny, thanks for your reply. I am in fact trying to do exactly what you've done, but I'm looking to do it with the Variable Expression component ("fx^N") instead of the F3 component ("fx^3"). I can't seem to get an 'F' input with that component.
Apologies, I completely forgot about the fx^N component, This ones for David as I don't think it is possible at present.
You could actually use this as a work around. If you only need numbers or integers you could utilise the Point XYZ component to increase the number of inputs of the Fx3 component to 9 possible variables.

That's a delightfully clever workaround. I think it might be a Pyrrhic victory (since the now-visible equation has been effectively enveloped by the workaround code), but I appreciate the ingenuity. I'll suspect that I'll just stick with the Expression Designer for now and copy/paste into a sticky for reference.

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