Move - Surfaces in 1 list separately

Hi,

The challenge:
Wjhat do we have:

  1. A list with translations vectors
  2. A list with surfaces

Question:
I would like to move the surfaces in the {0} list with the vectors in {0}
And would like to move the surfaces {1} over the vector {1}.

It is not working probably because of there are 2 translation vectors in {0} and only 1 in {1}.
Any suggestions?
It should be fairly simpel but I cant figure out.
2020-04-08 copy surfaces.gh (13.7 KB)

Thanks :slight_smile:


image

I know there is a work around, shown below, but I would like to make it generic. thanks again :slight_smile:


image

Hello!

Try it with Group and Ungroup:

2020-04-08 copy surfaces_re.gh (16.4 KB)

Zsolt

Perfect, thanks!

Ahh, sorry but there is still 1 question left.
I noticed that if there are also surfaces which do not have to be moved, they are still moved.
So its important that only the surfaces in list {1} are moved over {1}
Surfaces Move
{0} --> do not move
{1} --> moved over{1}
{2} --> moved over {2}

any suggestions?
thanks again :slight_smile:

2020-04-08 copy surfaces_re.gh (17.6 KB)


image

Don’t you need this one, too?

1 Like

Yes you are right :slight_smile:.
What was your script?
Thanks again!

2020-04-08 copy surfaces_re2.gh (23.8 KB)

Don’t be afraid of the red component, it works as it should.

On the other hand I don’t really prefer these solutions. Generally I think you are better off splitting the data tree and only use the (move) component on the branches you would you like to modify and merge them after.

1 Like

Hi!

Thanks again! :slight_smile:.
I am sorry but there is still 1 challenge to go :sweat_smile:.
Because at the moment we set ‘manually’ the ‘null’ at branch 0. In this case that is ok, but this could be in future fases any branch number. What we have to do is to ‘compare’ the branch names and filling 0 only at the items which dont have a ‘move command’.

I think we are pretty close.
The only thing we need to do is to find a way to ‘cull list A’ with branches that are present in branch B.
So only list C remains.
Do you have any suggestions?

Thanks again :slight_smile:

2020-04-08 copy surfaces_re_RE-re_RE.gh (28.4 KB)

Treesloth plugin’s ‘Unique Paths’ component does the trick for you :slight_smile:https://www.food4rhino.com/app/treesloth

Hi!
Ahh thanks again!
I am very sorry but just came to the conclusion that I would need, exactly the opposite function.
So I would like to retrieve all ‘same branches’ because then I can simply this list of surfaces in the move command.
Do you know how to retrieve all ‘the same’ branches?
I cant find it :sweat_smile:

Thanks again! :slight_smile:

Also TreeSloth plugin, but FilterUnmatched component :slight_smile: