Grasshopper

algorithmic modeling for Rhino

hii everyone

I want to make a rectangle that have values of x and y- that each of them can be changed by sliders then I wanted that the area of this rectangle will always remain 200sqm.

also I want to move this rectangle on xy plane but with limits from another points that surrounded this rectangle/.

there is an image for demonstration.

tnx

daniel

Views: 846

Replies to This Discussion

It's pretty counter to the way GH is supposed to work. Inputs are taken at face value, whether or not one is in the process of being changed doesn't really enter into it.

I attached a C# component which tests two values and outputs whether or not they've changed since the previous iteration. It should be pretty trivial to extend the script to include more inputs, although from a purely logical point of view a single input should suffice. You can re-use the same component as often as needed.

Attachments:

If I had more time, I would have written a shorter letter.
  -- Blaise Pascal

A single 'Ratio' slider is used to define the dimensions of the rectangle, which is constrained in both size and position (set by the 'MD Slider') by the "Limits" points.

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service