Grasshopper

algorithmic modeling for Rhino

How do i go about extracting the curves from this list?  Cant seem to figure it out, I want to create a new list with just the curves, not the arc-like curves just the curves.  Any help is appreciated. Thank you

-Boris

Views: 9341

Replies to This Discussion

You could try something along these lines:


Anything you want to keep give a 1 and anything to cull a 0. Note that the string must be exact as it is case sensitive. Higher Res image:Replace.png
Wow Thanks so much Danny, works perfectly, i sort of knew it had something to do with an expression, i just didn't know how to write it, but will def use this for now and future projects, Thanks again
-Boris
Thanks, just what i needed.

Hello Danny, thanks for your share.

maybe, if you have a geometrie param in entry:

Referenced "", do you have a syntax

 

Thanks for all

Is this a question about the error? If so then it has to be converted to a string for the replace function to work. Use the output of the text panel.

 

EDIT also you are going to get an issue with data matching the way you have it. To be sure you get all the correct replacements you will have to pass it through 3 separate Fx components.

Thank you for answer,
by repeating your same definition I produce an error.

I meant like this:

Don't working... I'm confused

I think its due to the data matching curve is being applied to the first referenced item, point to the next and line-like to the remainder.

If you want to do it with just one fx component then you need to graft the F input to get three separate lists and then manipulate the results into one. I have used the Flip Matrix and Sort component to achieve this. The Sort will ignore any strings and give you just the numbers.

Thank you Danny, It works now, against the coup by the "short list" suits me not at all.
Since I selected the following items replace the member.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service