algorithmic modeling for Rhino
Hi all,
2 questions:
- I would like to rename the branches of incoming data trees, see fig A. No matter the original branch names, I always want to rename them starting with 0, so {0},{1}, etc, and keep the same number of branches.
The way I'm doing it now has the inconvenience of only working for this particular number of branches, and I would like a more general way. Do I need a script or can I solve it with components, path mapper, etc?
-Also, and this one is probably simple but I can't seem to figure it out: I have a tree structure as in fig B, and I want to pick out certain series of branches from it, for example {1;0} to {2;11}. (PathGen seems to only go from {0;0} to a specified item?) So I want to be able to plug in a choice of numbers, and dispatch those branches into separate trees/cull them somehow. What am I missing? In general, I've failed to find a way to pick out all of the "uppermost" level of branches, eg {3;x}.
Any help greatly appreciated!
Tags:
Is it possible to reverse this process? I need to change 0,1,2 to 15,19,23
You can replace any branches you like. In the [Replace Paths] component, provide {0}, {1}, {2} as the input for S, and {15}, {19}, {23} as the input for R. You can use a multi-line panel to type these in by hand, that's probably easiest if the numbers do not depend on some specific state.
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