• Skip to primary navigation
  • Skip to main content

Horst Sondermann

Parametric BIM School

Facebook
Instagram
LinkedIn
Twitter
YouTube
  • Rhino/Grasshoppper
  • Archicad
  • Cinema4D
  • Adobe
  • Youtube
  • Print/EBook
  • About
  • Datenschutzerklärung
  • Impressum
Startseite » Rhino/Grasshoppper » Rhino3D Grasshopper: MD Slider for Scalable Box
Rhino3D Grasshopper: MD Slider for Scalable Box

Rhino3D Grasshopper: MD Slider for Scalable Box

In Rhino3D Grasshopper, I just discovered the MD Slider and wanted to utilize its 2-Dimension input for producing a scalable 3D-Box.

New to Grasshopper? I suggest you read this article in the first place.

Need more learning resources? Check this out.

The MD Slider allows for setting up a domain in X– and Y-direction (just double-click the input parameter icon). Other than its name and the settings suggest a Z-domain can’t be set:

grasshopper rhino3d rhinoceros rhino horst sondermann horstsondermann tutorial md slider input parametric modeling x y direction domain dimension scale scalable box rectangle deconstruct point expression input output extrude cap holes factor construct horstsondermann.com

To produce a box I had to extract X and Y via Deconstruct Point …

grasshopper rhino3d rhinoceros rhino horst sondermann horstsondermann tutorial md slider input parametric modeling x y direction domain dimension scale scalable box rectangle deconstruct point expression input output extrude cap holes factor construct horstsondermann.com

… and feed X– and Y– outputs into the corresponding inputs of a Rectangle component:

grasshopper rhino3d rhinoceros rhino horst sondermann horstsondermann tutorial md slider input parametric modeling x y direction domain dimension scale scalable box rectangle deconstruct point expression input output extrude cap holes factor construct horstsondermann.com

The rectangle turns 3D via Extrude and Cap Holes:

grasshopper rhino3d rhinoceros rhino horst sondermann horstsondermann tutorial md slider input parametric modeling x y direction domain dimension scale scalable box rectangle deconstruct point expression input output extrude cap holes factor construct horstsondermann.com

But of course, Extrude needs a Direction input. I used Unit Z (obviously) using half the sum of MD Slider’s X– and Y– output as Factor input:

grasshopper rhino3d rhinoceros rhino horst sondermann horstsondermann tutorial md slider input parametric modeling x y direction domain dimension scale scalable box rectangle deconstruct point expression input output extrude cap holes factor construct horstsondermann.com

As you can see I made use of an Expression component which I find convenient often times.

Now basically everything is done. But I wanted to offset my base rectangle so it centers around point(0,0,0). Rectangle’s Plane input is by default set to XY which is fine. But it offsets the rectangle from point(0,0,0) in positive X– and Y– direction.

To center the rectangle around point(0,0,0) I made use of the fact that Rectangle’s Plane input allows for point coordinates. These define the rectangle’s starting corner point. So all I had to do was to take MD Slider’s X and Y outputs, offset them by half their value and feed these results into a Construct Point component. So starting from here …

grasshopper rhino3d rhinoceros rhino horst sondermann horstsondermann tutorial md slider input parametric modeling x y direction domain dimension scale scalable box rectangle deconstruct point expression input output extrude cap holes factor construct horstsondermann.com

… I added my little offset definition:

grasshopper rhino3d rhinoceros rhino horst sondermann horstsondermann tutorial md slider input parametric modeling x y direction domain dimension scale scalable box rectangle deconstruct point expression input output extrude cap holes factor construct horstsondermann.com

That’s it – moving the MD Slider now let’s you scale the resulting box in all dimensions.

New to Grasshopper? I suggest you read this article in the first place.

Need more learning resources? Check this out.

Grasshopper-ARCHICAD-connection: See here for more information.

© 2019 / Horst Sondermann / All Rights reserved

 

Summary

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Copyright © 2023 · Genesis Sample on Genesis Framework · WordPress · Log in