algorithmic modeling for Rhino
Hi all,
I am trying to achieve random point trails using python,so far i was successful making random points but jumping positions with timer feed. I have seen examples of agents systems made using python but they are a little complex for me at this point of time.
please provide direction to the Python newcomer. :)
Tags:
Any one ???
Hi,
I've modified your definition to do what you described above. I've changed the direct timer input to a counter+timer input as a variable. This passes an integer that updates the repeating steps (for loop in the script).
I've also wrapped your point coordinate generation into functions and classes, which makes calling the necessary steps for the walker easier. The script is annotated, to make it easier to understand. It is still pretty simple, don't worry.
I'd also recommend you to use clearer and less abstract variable names in the future. It makes your code much more legible for your self and for those that you share it with. Instead of calling the variable for your step size in x direction "g", why not call it "step_size_x"?!
The component outputs a list of all points that can produce a polyline, NURBS curve or similar as a walker trail. It also returns the first and last position of the walker as points.
Have fun!
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