algorithmic modeling for Rhino
Hi,
I have use the Weave component to make sure that my curves are in the right order.
But as soon as I have an empty input, I get an error on the output.
So I switch to merge, it seems working but I not sure if this node will keep always the same order for the output.
Do you know if the merge node will always keep the same order.
If so what is the difference between Weave and Merge.
If not how I can feed Weave with null input?
See attached my GH file
Thank you
Davoud
Tags:
Hi Davoud,
If you are inputting each curve individually into an input, Merge is fine., It will keep the order you input the wires in, obviously skipping past the null (so the fourth curve you input is actually in position 3)
Weave is useful when you have two lists with several objects in each, and you want to combine them into one list, in a particular order (that order being the "Pattern")
So if you have a list with letters: A, B, C, D, E, F... into input 1
And a list of numbers: 1, 2, 3, 4, 5... into input 2
With the pattern: 1, 1, 2
The output of the weave would be A, B, 1, C, D, 2, E, F, 3...
Until it runs out of list.
Hope that helped!
john
i think weave is better used to create data trees (branches)
so A will be with 1 in a separate list ( the first branch )
a,1
b,2
c,3
and you can add patterns ( first list , second list, third list)
or (first list, second list, first list)
Hi John Porral
Unfortunately, merge do not keep my order.
Can I enter in the pattern, if the input is null got to the next one?
Hi John,
So at the beginning of my GH file, I have 20 pipeline for curve. And some of the pipeline will be empty.
I was using Weave to make sure that they are in the right order. but because, some input are empty I'm not able to get an Output
I just need to have my curve in the right order at the end to do a network surface.
Thank you
Hi Mohamed Naeim,
I try but this not work for me because this do not remove "null"
When are you using this node?
Thank you for your help
Davoud
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by