Notifications
Clear all

[Closed] Randomize objects on a spline

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

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.

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
)


helper_points = for i = 1 to 100 collect point pos:(pathInterp $ 1 (random 0.0 1.0))
 

Thank you so much!!!
Works great