algorithmic modeling for Rhino
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).
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.
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.
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.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by