Invert attractor effect


I know that this question has been asked sometimes but no solution works for me so I need your help.
I would like to invert the variable radius effect on my pipe function.
I tried to invert the input on the Remap but it didn’t work.
I would like to have a smaller radius on the circle and a bigger radius outside.

Thanks for your help!


As you seem to be new here, welcome to the forum.

Maybe you want to read this post in order to get better help:

Also please don’t duplicate posts:

I’m sorry for this.
In attached file you have my .gh file

I will delete my other (283.0 KB)

As you haven’t mentioned your definition, I can only suggest you use the “REVERSE LIST” component which reverses the data in a list. :slight_smile:

Good Luck!

I joined my file in an other post above but I will try your solution
Thank you so much

You have 4780 segments input to VPipe ‘C’ but twice as many values coming out (9560). That doesn’t look right?

Let me know if your problem is solved. :slight_smile:
Best regards!

I don’t know exactly how it works but I have the result that I want. The problem is to inverse the value of the radius…but maybe the number of segments has an impact… ?

It seems no… Where do I have to put my reverse list ? before the Vpipe ?

I doubt that.
Explode Curve is doing nothing, it has the same number of lines input as output: 4780. (288.0 KB)

This isnt the solution to reverse an attractor

1 Like

You are right
Thank you very much for your file and your time.
Is it possible to invert the value of the radius ? I would like to have a smaller radius in the circle and a bigger radius outside!

I hope to have this effect

Flawed perceptions result in flawed solutions, time after time.

  1. Getting twice as many results (‘VPipes’) as you have line segments was an obvious flaw that you ignored, even when I pointed it out.

  2. This is not an “Invert attractor effect” at all. What you seem to want is to apply the distance to attractor only to those lines (points) inside the attractor and ignore those outside?

  3. Your attractor curves (plural, not singular and ellipses, not circles) are planar while your lines (points) are not in the same plane, therefore “inside / outside” is meaningless.

I’m sorry it’s the beginning for me with Grasshopper so I tried to use what I found on Youtube.

  1. It’s difficult for me to understand the default with the line segments
  2. I think yes, visually I want to invert the effect but maybe it’s not really the case, if I want a smaller radius pipe in the circle than outside maybe it’s what you mean
  3. Is it better if I put a sphere because it’s in 3D, is it possible with a sphere ?

That looks to me like a single point attractor. I see no evidence of constraining curves. (293.9 KB)

Your line segments may be longer than you realize?

P.S. No, they are all identical in length: 55.597329

Thank you so much for your help
I put somes curves because I would like “an oval effect” and not a round.
With an attractor point I think that the effect spreads like a round, isn’t it ?

Yes, the effect of an attractor point is “round” - spherical, actually.

Does this help you understand the effect of attractor curves? These lines connect the mid-point of your line segments to the nearest point on one of the attractor curves. Their lengths are distance values. (278.2 KB) (295.0 KB)

Above is based on yesterday’s version ( using mid-points.
Below is based on today’s version ( using end points. (299.0 KB)

Thank you very much for your help, it helps me a lot to understand the effect of the attractor it was very abstract for me.
I see the difference between both files. I will work with the version using end points.
It really helps me
Thanks again !