Grasshopper

algorithmic modeling for Rhino

Wonder if there could be a way that by holding some key command with the click and drag of a wire it will allow you to keep connecting a wire to different places until the key command is released, instead of having to go back to the output of the source component and having to grab another wire for the next component connection. I think this could be a helpful idea.

Views: 2939

Replies to This Discussion

Hi michael, i agree it would be nice to control wires that way. For now only multiple wires switching is available by holding Ctrl+Shift and mouse click at the same time. 

greets

Yes, I already know of rewiring. handy, but not in the case of new wires.

I added a Right-click override. You still have to keep the Left mouse button down the whole time, but right-clicking will add a wire without exiting the tool.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

sweet!

So a right-click on the input will connect without exiting the wire-drag?

That's sweet.

amazing, thanks alot it will save alot of time.

Convenient !

David is this option available only in the newest 0.9.006 version?

I did not understand it, or I am doing something wrong - I need to press and hold the left mouse button and then after the first wire plugs in, I need to press the right mouse button on the second input (while still holding the left one). And so on?

It's in 0.9+, this is the order:

  1. Left Button MouseDown over a parameter
  2. Drag mouse over to another parameter
  3. Click Right Button to create a new wire (Do not let go of the left button!)
  4. Repeat 2 & 3 ad infinitum
  5. Let go of left button in empty space or on top of a parameter.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

I would add another function for wires which enable users to plug the wire directly into the tree path (eventually at the certain index number) or extract them out to be connected to the next component. Param viewer could play that rule if it was editable. So, for example one could insert data straight to the tree diagram or modify order of existing sets inside the data tree and so on.  That would probably make the data tree composing much easier to menage.

 Just another idea which has been popping up in my mind whenever i had to deal with more complex data tree structures...

I don't know how you would plug into a tree, but I'd like the option to visually select a branch with the ParamViewer.

Like click and drag one of the nodes and drop it on the canvas to create TreeBranch component with Tree input connected and Branch input filled accordingly.

Hi Hannes, this is a wider explanation of how does that component would work like:

INPUT: let's say we have list of items in the data tree:

{0;0;0}
{0;0;1}
{0;0;2}
{0;0;3}

{0;1;0}
{0;1;1}
{0;1;2}
{0;1;3}

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 - pt
1 - pt
2 - pt
{0;0;3;1}
0 -pt
1 - pt
2 - pt
3 - 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 

 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service