Convert a rule into a full list of single items representing the rule


Would it be possible to automatically convert a rule, into a full list of (single) items representing the rule?

So for instance you have the rule:
{0;0; 2 to 4}

Convert automatically to a list with items: -->

Thank you in advance! :slight_smile:

Renumber perhaps?

Hi, thank you for your answer, but does it also work when you insert {0:0; 2 to 4} ?
Instead of 2 to 4?
Because I dont fully understand the statistic node.
Thank you again :slight_smile:

Dear Ruud,
Does this work?


thank you, would it be possible to send the GH file?
so I can test?

thank you :slight_smile:

PFA (8.8 KB)

hmm unfortunately not, See my topic in the link below.
Here I explain the problem within the setting :slight_smile:

have a look and if you succeed you are my hero :wink:


Dear Ruud,
I don’t know what you been smoking,but thats a very poor explanation to your problem.( don’t duplicate threads)
Furthermore, on the “Hero” thingy- I pass., thanks for the offer.
Coming to the point… tree paths have order, hierarchy etc, while lists are more simplistic in nature. Tree paths are not similar to"lists" index numbers and do not function/relate in similar ways to tree paths.
Challenge for you, Topo this!
Mr A.

1 Like

Hi Thx again,

sorry but I am quite new here so there is still plenty to learn. :slight_smile:

I made your file see below.
However I must admit I dont know how this would help solving my challenge. It looks like the statistics node has some potential, however I dont know how I could utilize it for my challenge. Maybe we are makinging things way to complicated.

I will try to explain it in a different way.

  1. There is simple data tree, with 640 branches, with all 1 item. (branches represent grid lines. the item in the branch represent the gridcoordinate {X;Y;Z} ).
  2. I would like to select a couple of branches (gridcoordinates) by writting (manually) a couple off branch names and rules into a panel. (rules because I dont want to write 1 sentence for each coordinate).
  3. Important condition is that the first item in the list, is also the first item (gridcoordinates) that comes out.

I have a feeling we are thinking way to complicated however I cant see it anymore :sweat_smile:

thanks again for yourr time :slight_smile:Split data data tree (37.9 KB) (24.7 KB)

Dear Rudd,
My first question… if all branches have one item… why are they in a tree structure and not a simple list.
If I hear you correctly(let’s hope so) you want to write the coordinate and chk for equality and then get only that coordinate out? Then why not just write them( why chk for equality).
Also why are you writing “{0;0;1,2}” this makes no sense whatsoever.
I need juan valdez( double shots) … or whatever it is that you have been drinking.

BTW… the code given above does exactly what you need. You just need to tweak the random input part

answers to your questions;

  1. Its a tree because the branches represent grid axes (so integers 1,2,3,4), while the item within the branch represents the coordinate (x,y,z) (in meters).

So by asking for a specific axes, I can get the corresponding grid coordinate --> belonging to that Axes.

The only thing is that the order of input MUST be the same as the order of output, and that is not the case with the split tree command.

With the branch command this IS is order, however with the branch command I cant use the rules. this bring me to your second question;

  1. I would like to use rulse like {0;0;1,2], because it enables me to get 2 (or more) gridcoordinates by only writing down 1 sentence. This will significantly reduce the number of input needed to collect all the points that I would like to have.

  2. believe me I have tried, but I was not able. (yes, probably because my own incompetence) but could you please show me how its done?

I have prepared the file with my data list in the attachment

Branchingrule_take1_29022020 (26.9 KB)

My dear Ruud,
Here is your language… personally dont like this , because its gibberish and case specific. Don’t talk Sanskrit to computers.
Try this! (23.4 KB)

Thank you for your help today.
It is indeed a bit to wobly.

I have made a work around using multiple split tree commands.
But I have learned a lot. thanks. :slight_smile: