Notifications
Clear all
[Closed] Randomize objects on a spline
Oct 29, 2019 6:29 pm
Hello
I have an object that i want to spread a few copies of it on a spline
I wouldv’e used the Spacing tool but I want the objects to be randomly placed
4 Replies
Oct 29, 2019 6:29 pm
for i = 1 to 100 do point pos:(pathInterp $ 1 (random 0.0 1.0))
creates a 100 random point helpers along the selected spline shape (shape 1) though there must be loads of scatter along spline scripts knocking around scriptspot.
Oct 29, 2019 6:29 pm
That’s great!
One more follow-up question
How do I put all those point helpers into 1 array? I tried this and it didn’t work :
array posArray
for i = 1 to 100 do (
newPoint= point pos:(pathInterp $ 1 (random 0.0 1.0))
append posArray newPoint
)
Oct 29, 2019 6:29 pm
helper_points = for i = 1 to 100 collect point pos:(pathInterp $ 1 (random 0.0 1.0))