Overriding the 'on' button in the grab feature in kangaroo

Hi grasshopper community

I’m wanting the on button for the grab feature in kangaroo to be controlled by a point rather than the combination of ‘alt key + left mouse button’

I have this adapted gh definition from Dan Parkers git-hub where i am revolving a curve around a axis

Any help is appreciated :slight_smile:

cable collide.gh (10.1 KB)

What’s the reason to use Kangaroo for this simple revolution?

The six points can either be real Rhino points you can snap and move with the Rhino gumball or you can store them as Grasshopper points and move them with the Grasshopper gumballs.

Piker…

Hi Martin

Thanks for the quick reply - and sorry to Dan Piker about the misspelling…

The reason for using kangaroo is because I’m trying to replicate clay deformation (in a super basic way)
This gh code is going to be coupled with this a hand tracking project I am working on - see attached
Sorry this file is a bit chaotic…

So the points I am trying to have control the curve will be the tip of my finger points of my hand
This project is using a plugin called Euglena which only workes on rhino 8

hand_tracking_v6.gh (64.4 KB)

Interesting.

Btw, your grab component is outdated. The current version does not use the Alt+LMB combination…

I think also your solver component might be outdated.

Check this:

At the beginning, you need to bake / cache the six points. Doing this with a cache name, you can overwrite the same points later… The initial points are moved manually in Rhino and then finally baked / cached again. It’s like a loop.

I increased the collision radius to 5 for verification purpose.

I think you can input your finger points into the target point input on the anchor component.

You’ll probably need some data sorting to replace the right points…

cable collide.gh (26.9 KB)

1 Like

Thanks Martin

I’ll test this integration on our code and see how it goes
Hopefully with get back to you soo with some nice updates

Thanks again!

1 Like

Hi Martin

I got it working in the end - your logic put me on the right path and I was able to slightly adapted it to get a result I’m happy with given the short time frame.
If you have any tips or tricks to get a more smooth interaction between the points and the sphere collider I’m keen to hear it

Thanks again for the tips!

vid_8
sculpt_hand-01.gh (35.0 KB)

1 Like