Grasshopper

algorithmic modeling for Rhino

Hi

do you know if we can rotate this MD Slider? It seems to be the easiest solution to orientate to what is happening on the screen. That is now Y-axis is X-axis, plus is minus etc.

Views: 1491

Attachments:

Replies to This Discussion

You can use "Decompose Vector" to get the X, Y and Z parts, then use a "Vector X,Y,Z" and connect the wires in the way that is right. You can also use the expression to multiply by -1 for example. Just right-click on an input and in the expression enter for example "-x" (the variable in the expression is always "x" no matter what the input is called).

I am giving it a try now

Thanks 

Thanks Armin Seltz it worked.

It didn't strike me to vectors. Do you know if there is any "more efficient" way of doing that. I am asking out of curiosity.

Thanks again.

I attach screenshot for the record.

I dont think there is an easier way. There is always several ways in Grasshopper though. There might be a way to make it not necessary to rotate because of creating other things in your file differently.

All in all its still a pretty simple solution though and expressions are used a lot, especially for things like "-x", "x/2", etc. 

Getting used to working with vectors and the many ways to transform things was one of the great revelations when working with grasshopper.

No, the solution is great. I asked purely out of curiosity.

Thanks again.

Great, thanks Tom, that's the best solution.

Armin I think that your solution was perfect for the question I asked. Tom's solution works though "locally" rather than referring to "global" vectors if you know what I mean.

Thanks again.

I am wondering if it was possible to shift order of points in Grasshopper, "like this":

 

This is obviously almost the same thing, but what my intuition was telling me is that using vectors is somewhat "excessive". It may be, probably is, completely fine.

You cant do it like that because the vector is not a list. It is just one list item containing vector data. For what you are trying to do, the solution with decompose and compose is the logical and shortest way to do it in GH.

"using vectors is somewhat "excessive"" - absolutely not. They are at the core of everything you are doing in GH. That transform component that is moving the geometry is using a vector to move things in your image - it needs a vector as an input (T). It just happens to be clever enough to interpret -41.33, -328.34 as a vector. Understanding how planes and vectors work is essential and actually very easy, so nothing excessive about it at all.

Thanks, I find it interesting how you are using term vector as when I would say point, because in Python for example this is interchangable.

It does make sense I realized that what I tried to do and "decompose vector" component are actually one and the same thing.

Thanks again for your input.

Yeah, I know its a bit strange how the term is used in GH and you are right decompose vector and point do the same thing. Grasshopper is very clever the way it can convert between points, planes and vectors and it kind of always just works.

Even though it has the same components as a point (x,y,z), it would be weird to transform a geometry using a "point", so I refer to them as vectors there, because you transform something using a vector (or matrix), they just happen to have the same syntax. One is absolute and the other is relative.

FYI "Dir" command in Rhino

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service