Grasshopper

algorithmic modeling for Rhino

dear friends,

 

pulling my few remaining hairs out -- cannot figure out simple problem..

 

any suggestions for this old timer?

cheers,

ognek

Views: 647

Replies to This Discussion

hi ognek,

Maybe someone finds a third solution... ;-)


Renzo
Attachments:
Ok... I got totally sidetracked before I could think of a reasonable way to do this. I attached both my solutions for completeness sake.

But my opinion is that this should be easier to accomplish. I'll try and come up with some components that do a better job at this.

--
David Rutten
david@mcneel.com
Seattle, WA
Attachments:
Hi David,

First, thank you for your extraordinary work.

Would it be possible to incorporate conditional functions in function blocks?
One could thus solve many problems without using script components.

regards

Renzo
Hi Renzo,

I've been dragging my feet a bit with the scripting language in GH. I wrote it myself but it's not really something I want to keep on supporting as there seem to be better options available. However, switching to those will take a lot of work, especially as I cannot break syntax.

I can probably add an If() function, but for advanced conditionals I'll need to seriously rethink this whole approach.

--
David Rutten
david@mcneel.com
Seattle, WA
Ok, adding an If() function was easy. It works as follows:

If(condition, A, B)

where A is returned if condition=true and B is returned if condition=false. Both A and B are evaluated though.



--
David Rutten
david@mcneel.com
Seattle, WA
David, Renzo,

Thank you very much for the comments.
David the solution is clean and elegant!

I am at peace now..
Ognek
Thanks David, this is going to be very, very useful!
Excellent addition. Thank you
I like it!!
Thanks a lot David, Ognek and Renzo
This is going to be very useful !
I'll use the somewhatLessHideousSolution.ghx eagerly waiting for this one ;)
but you could just do the same thing with a C#/VB component. i think thats what is great about those components you can write something simple like a if statement or as complex as you want
Hi Robert,

This version was presented in my script example.

regards

Renzo

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