e range of materials, including heavy-duty fabrics. They offer a range of embroidery machines that cater to different needs and budgets.best embroidery machine for custom designs…
nts me this:
[[0], [0, 1], [0, 1, 2], [0, 1, 2, 3], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4, 5], [0, 1, 2, 3, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6, 7]]
this is what I wanted but how to convert this to tree in grasshopper?
In grasshopper I just get:
8x IronPython.Runtime.List…
e), {1;2}(line), {1;3}(line)... and on the other side to have {0;0}(all lines except {0}(0)), {0;1} (all lines except {0}(1)), {0;2}(all lines except {0}(2)), {0;3}(all lines except {0}(3)), {1;0} (all lines except {1}(0)), {1;1} (all lines except {1}(1)), {1;2} (all lines except {1}(2)) ,{1;3} (all lines except {1}(3))...The first tree is easy to achieve, simply grafting a branch for each element, and the other, what I've done is to copy all lines of each tree ({0},{1},{2},{3}), to have them in all branches of each tree ({0;0}(elements of {0}), {0;1}(elements of {0}),,{1;0}(elements of {1}), {1;1}(elements of {1})..., and then remove in the first branch({0;1} the first element(0), in the second branch the second element, the third branch the third element...And so correctly you compare each line with all the other within each branched tree.Aaaaapufff XD…
am however having a problem with something simple - limiting a set of values between a fixed set that I need help with please?
For example, I'd like to transform this list . . .
(2, 16, 4, 65, 12, 41, 7, 1, 22)
into this one . . .
(5, 16, 5, 25, 12, 25, 7, 5, 22)
i.e. selecting all numbers below 5 and changing them to 5 and selecting all numbers above 25 and changing them to 25.
I know it's possible with a simple If, Not, Then series but I'm rubbish at code!
Also, is there a simple way to apply dimensions to rhino objects from within GH?
Thanks for your help!
Cheers
James…
path = 0;0
item = 3 path = 0;0
item = 25 path = 0;1
item = 46 path = 0;2
item = 7 path = 0;3
would output
0;0
0;0
0;1
0;2
0;3
I'm sure there is a way to do this, especially with the new Tree statistics component, but I couldn't think of a super straightforward way - so I defer to the grasshopper community.
Anyone have a preferred method for this task?
Thanks
Brian…
Added by Brian Harms at 12:37am on October 10, 2012
}
X*
{0;2;0}{0;2;1}{0;2;2}{0;2;3}
{0;3;0}{0;3;1}{0;3;2}{0;3;3}
And now we want to insert at the place marked with X* another list formated like:
{0;0}{0;1}{0;2}{0;3}
So we want it resulted like:
{0;0;0}{0;0;1}{0;0;2}{0;0;3}
{0;1;0}{0;1;1}{0;1;2}{0;1;3}
*{0;2;0}{0;2;1}{0;2;2}{0;2;3}* - the inserted list
{0;3;0}{0;3;1}{0;3;2}{0;3;3}
{0;4;0}{0;4;1}{0;4;2}{0;4;3}
Since we plug the list formated with only {A;B} into the place with has {A;B;C} then that list has to be reformated in the same manner and every lists which are next to it have to be reformated too by adding 1 to B so it's {A;B+1;C}.
Param viewer with the data tree diagram is a great tool for visualising data structure. It seems to me that it would be easier to play with lists in the same way as we do with connecting components together. So if we have list of points and we want to insert them at some certain place in the tree then we don't need to play with Patch Mapper, Insert List and others but we just plug them on one go into the tree and format will adopt itself automaticly according to the choicen position on the tree.
Same with OUTPUT. We can pick some elements from the tree and connect it to the component which will receive every element from that branch. (example):There is a list of points with complex data structure. we pick node {0;0;3} and move it out from param viewer to connect it with point component which will receive all the sublists with elements which are under it:
{0;0;3;0}0 - pt1 - pt2 - pt{0;0;3;1}0 -pt1 - pt2 - pt3 - pt...and so on...
I don't know if this solution make better sense then other solutions of this case. Maybe there are easier ways to do it without such complication and I have no idea about it :)
greets!
Adam
…