Grasshopper

algorithmic modeling for Rhino

how to replace a component without lossing connection?

 if i want to replace  a component with another one ( as the substraction and addition components in the image , just an example) . what is the right thing to do ? i really don't want to disconnect all caz i may loss all the original connection ! it's a larger problem if  more components are connected to it, sometimes its so frustrating to reconnect everything again just for replacing a single component.

is it possible to select all the wires from one input (or output)  and redirect them to another ?

Views: 3296

Replies to This Discussion

I'm afraid that for the time being it's not possible. I've also been wanting to ask for a feature like this (replace component).

The idea of dragging wire conections was already discussed with David and as far as I remember it would invoke rewriting a bigger part of GH, since the wires are just simiply drawn now and are not objects like components and params.

One other way to achieve this functionality would be to have the option "extract parameter" also work with already connected parameters, not only generic ones:

thx. that explains a lot. still good to know the "extrat parameter" method. although unable to work with already connected prarmeters , but i think whatwe can do is extract the parameter which is going to have much more connection in advance
Yes, it's good to use an additional parameter in advance, as you say, I do it frequently, as I really hate repluging lots of inputs. Sometimes it's a good idea to use Merge Multiple instead of a single parameter - that way you have better control over the order of the input streams.
To replace an Addition with a Subtraction:

1. Select the Subtraction component and press Ctrl+C
2. Paste the xml in the clipboard into a text editor
3. Search the xml for the Guid of the component ID:


4. Now select the Addition component and copy it to the clipboard
5. Find the ID of the addition component:


6. Replace the addition ID with the subtraction ID.
7. Select all xml and copy the text into the clipboard.
8. Go back to Grasshopper and paste.

This will only work if the two components (addition and subtraction) have the exact same input and output parameter layout.

--
David Rutten
david@mcneel.com
Seattle, WA
I don't even see the code anymore. All I see is blonde, brunette, redhead...
Thanks David,
it's good to know emergency exits like these.
this situation is why i find merge / merge multiple paramount.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service