Grasshopper

algorithmic modeling for Rhino

Heyho,

actually I am trying to deform lines by vectors. As you can see in my attached File.

In example I have a line, which is made of 3 points. The first and last point should be fix .Meanwhile the middle point is variable.
The vector is created by two extra points.

Well, the problem I do have is, that the deformation of the point only gets influenced by the "length" of the vector. Means the larger the distance of between the two points, that create my vector, the stronger the deformation.

But I would like to change the "strength of deformation" by an value, that I can change with a slider e.g.

0  would change nothing
10 would morph the line 10 meters to the left.


Would be great to get help!
Regards

Views: 894

Attachments:

Replies to This Discussion

You can use a Vector Amplitude component to force the length of a vector to a specific value. If you modify your vector this way prior to deforming the line, you should be able to disassociate the strength of the deformation with the vector length and use a slider instead.

--
David Rutten
david@mcneel.com
London, UK
Hm, well quite simple. Thank you!
Okay, Now I do have another problem.

I would like to change the curve degree in relation to the strength of the deformation.

Are there any condition - components which would solve the problem?

Regards
Attachments:
Solved the problem with an VB-script command

if x <= 0.01 then A = 1
if y > 0.01 then A = 3

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service