Grasshopper

algorithmic modeling for Rhino

Problem switching from slider to random number generator

Hi everyone,
I have a definition that creates a closed curve made up of points that I moved in the x and y direction with sliders. I want to attach a random number generator in place of the slider so the movement of the points is random. However when I attach the random generator, and error occurs with my curve element stating " insufficient vertices for a curve". Anyone know what the problem is? I tried using any number from a list of numbers, but only numbers from a slider work in moving the points without corrupting the curve.

Views: 1218

Replies to This Discussion

Seems something's getting wrong with the points generated from the random generator. Made a try and it works just the way you describe it.

What are the random generator attached to?
Thank you for the quick reply. I did a quick photoshop of the definition to show how i set it up. I highlighted in green where i attached the random generator, then connected it to the move. In orange, I connected sliders, and those work. anything other then sliders corrupts the curve. Sorry for the messy file
Attachments:
But even if the point that is randomly moved by the random component gets messed up, the curve should still be fine, if it is provided with other valid points. If you just preview the Merge, do you get at least two points?
correct. The line is still there, and the point moves when hooked up to the random generator. But the line does not move with the point.
Beats me. Any chance you could post the definition?
Here is the rhino file and definition.
Attachments:
Thanks, that made it easier. Saw the boxes you've made on your blog, and they are awesome.
The curve component creates one curve when you use the sliders to move the points around. But when you use the random component you add a path, and the curve component tries to make two curves. Just right-click the unit vector that you feed with your random number and flatten it. That will keep all your points on the same path.

Hope to see more woodwork on your blog.
Thank you for all your help. That worked perfect. I will be creating a few new boxes in the next couple of days based on forms generated by the definition. I will try to post them in a few days. Thank you again!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service