Attractor point - Grasshopper2024-03-29T12:06:46Zhttps://www.grasshopper3d.com/forum/topics/attractor-point-1?feed=yes&xn_auth=noDavid,
From your comment i u…tag:www.grasshopper3d.com,2012-11-12:2985220:Comment:7239962012-11-12T03:20:51.044Zkonrad k sobonhttps://www.grasshopper3d.com/profile/konradksobon
<p>David,</p>
<p></p>
<p>From your comment i understand that it's possible to extract x and y parameters from the graph mapper. Can you explain how i would need to go about it?</p>
<p>I am hoping to use an attractor point that will do two things for me:</p>
<p> 1. Based on its distance to a set of curves it will deform them in x and z directions away from the point. I want both of those deformations to be in a form of a gaussian curve thus graph mapper seems to be appropriate. How do i…</p>
<p>David,</p>
<p></p>
<p>From your comment i understand that it's possible to extract x and y parameters from the graph mapper. Can you explain how i would need to go about it?</p>
<p>I am hoping to use an attractor point that will do two things for me:</p>
<p> 1. Based on its distance to a set of curves it will deform them in x and z directions away from the point. I want both of those deformations to be in a form of a gaussian curve thus graph mapper seems to be appropriate. How do i extract x and y so that they drive vector z and x?</p>
<p></p>
<p>thank you,</p>
<p></p>
<p>konrad</p> you could also use remap comp…tag:www.grasshopper3d.com,2012-03-11:2985220:Comment:5535062012-03-11T23:07:40.509ZMichael Pryorhttps://www.grasshopper3d.com/profile/MikePryor
<p>you could also use remap component and remap the values for 1 to 0 to 0 to 1. inverting the distances proportionally.</p>
<p>you could also use remap component and remap the values for 1 to 0 to 0 to 1. inverting the distances proportionally.</p> Hi David!!!...
It works!!!..…tag:www.grasshopper3d.com,2012-03-02:2985220:Comment:5484292012-03-02T21:33:43.892ZDanny Andrés Osorio Gaviriahttps://www.grasshopper3d.com/profile/DannyAndresOsorioGaviria
<p>Hi David!!!...</p>
<p></p>
<p>It works!!!... you are a genius!!!...</p>
<p></p>
<p>Thank you very much for always be aware of all discussions in the forum... you are really helpful!!!...</p>
<p></p>
<p>Thanks again!!!...</p>
<p></p>
<p>Greetings from Colombia.</p>
<p></p>
<p>Danny.</p>
<p>Hi David!!!...</p>
<p></p>
<p>It works!!!... you are a genius!!!...</p>
<p></p>
<p>Thank you very much for always be aware of all discussions in the forum... you are really helpful!!!...</p>
<p></p>
<p>Thanks again!!!...</p>
<p></p>
<p>Greetings from Colombia.</p>
<p></p>
<p>Danny.</p> Hi Danny,
you need to insert…tag:www.grasshopper3d.com,2012-03-01:2985220:Comment:5474282012-03-01T07:35:01.938ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>Hi Danny,</p>
<p></p>
<p>you need to insert an algorithm (technically a subroutine) between your Attractor-distance measurement and your extrusion length. You can use an expression to modify these numbers, for example:</p>
<p></p>
<blockquote><p>E = 1000/d</p>
</blockquote>
<p></p>
<p>Where <em>E</em> is the extrusion height and <em>d</em> is the distance from the attractor (if you put this into a F(x) component you only have to write <em>1000/d</em> btw., the <em>E =</em> is implied). Do…</p>
<p>Hi Danny,</p>
<p></p>
<p>you need to insert an algorithm (technically a subroutine) between your Attractor-distance measurement and your extrusion length. You can use an expression to modify these numbers, for example:</p>
<p></p>
<blockquote><p>E = 1000/d</p>
</blockquote>
<p></p>
<p>Where <em>E</em> is the extrusion height and <em>d</em> is the distance from the attractor (if you put this into a F(x) component you only have to write <em>1000/d</em> btw., the <em>E =</em> is implied). Do note that division like this may result in very high buildings, you might also want to add some protection against that.</p>
<p></p>
<p>Another approach entirely would be to use a Graph Mapper. Along the X axis you have your Attractor-distances, along the Y axis you'll have your Extrusion-heights. Then pick any graph you want to map between these scales.</p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>