algorithmic modeling for Rhino
Hi,
I am working on a script that moves, copies and rotates one component on a surface.
However once the component is on the surface the xy rotation is random. How can I uniform the rotation along the same axis, which is the one from the original component?
Thank you
Tags:
Hi Laura,
here's what I think you meant to do:
Wow, thats neat!
I like your solution. Laura? Forget mine!
Hi Pieter,
thanks you sorted. I am bit new in GH... I would like to understand what you did.
What is the function of the MD Slider?
Thank you for the help
Hi Laura, you're welcome.
At first I didn't understand your question, but after seeing what Lucas did, I figured it might be this you were after. So thank you Lucas.
Note: To make things easier to see I scaled all your geometry by factor 0.05, that way the planes are visible.
The Surface Closest Points results in the uv coordinates on your surface.
The Evaluate Surface finds the surface normal at these locations (plus a plane (Frame), which I should have used instead of the one from the Plane Normal (I deleted that here)).
Then the found planes are aligned by the vector from the MDSlider.
Finally the petal groups are oriented to these planes.
May I suggest you read the primer by Andy Payne. Even though it's rather outdated it will steepen your learning curve a lot I think.
I've attached a new definition, with scaled down geometry internalized.
Have a nice day.
Cool
thanks for the explanation.
I was wondering about the MD Slider as I never used it.
Thank you for the help
Have a good day too
Hey Pieter, thanks a lot for the explanation. Great !!!
Nice of you to say that Aakriti, thanks.
B.t.w. Laura: If you don't group the three original petals, you can just graft the input B (target planes) of the Orient component. I guess I just stuck to the inputs as they were in Lucas' file... (I don't usually use groups)
Thank you very much for the suggestion.
Last question, did you place the MD Slider value intuitively or you calculate the exact rotation?
Did I place it? No, as I don't know which direction you want, it is pretty much random. You can create your alignment vector any way you want. It's just that I don't understand what should define your alignment vector here...
No I didn't.
I was trying to figure out how I can set the exact alignment.
I attached an image with the alignment axis. Which would be for you the most efficient way?
Ah, so you want them all to be aligned to the original... I now see you indicated that before, sorry~
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