Grasshopper

algorithmic modeling for Rhino

Hi everyone,

Is there a way to use value list with more than one input (see image below), using tree's syntax in the value list formular (lower exemple, which I assume is totally wrong...)?

Views: 6548

Replies to This Discussion

... Meant more than one OUtput, sorry :)

I'm not 100% sure, but I don't think you can.  I think each line item is treated independently.

That said, if you're looking for a way to select tree branches according to the value of a single index, you can use wildcard texts to generate a mask for a Split Path component:

Thank you,

I wanted to use it to create patterns for branches. My problem is, I often use tree index for naming purpose but I am currently working with a messy file where I have to recreate branches artificially to process data later (not really the best solution!).

So far, the best solution I found is to create a fantom tree with the good data structure and to match it with the one I want. In the following example, I am dealling with "walking dead geometry" so I am sure the indexes won't change...

Here is an example, if you know a better way, let me know :)

Edit : Pattern stuff is in the Shrub Cluster

Attachments:

Something like this may be easier?  Each input in your list series can easily be made dynamic...

Thank you!

I should have think of replace branches! :)

actually, I have a subsidiary question, I found the list of wildcards (in the geometry pipeline info) :

? any single character
* zero or more character
# any single digit [0-9]
[chars] any single chararcter in chars
[!chars] any single chararcter not in chars

Is there any other I could use for masks? (split trees, tree branch, etc.) or any other purpose? (like path mapper for example, but could be any other thing) ...the question is as wide as possible.

 remember seeing something for branches creation in the manage [input] collection but can't find it anymore...

Thx,

sylvain.

the value list accepts coordinates, that means three values for example like this

{0,10,20}

You can use a point deconstruct to access the three values

I need to have 4 values in my value list.....

Input any string you like with a separator that is not a wildcard or for syntax. Then use TextSplit to split the individual parts.

ah yeah that works. thanks

Hi Sylvain, 

I'm trying to do something like this right now where I want to target specific branches of data and don't care about how many sub-branches there are. Right now it is two primary branches {0;0;123} and {1;0;4556} where the first number in the branch is all that matters with the last part variable (123 and 4556 respectively). Were you able to utilize the wildcard syntax mention in your reply to retrieve branches of data? I tried the syntax from the first post in this thread but it would fail to retrieve anything despite Grasshopper not posting any warnings...

Let me know your thought if you have a few minutes. Thanks!

-Tim 

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