|
hi there ive got a question for anybody out there ......
im doing a litlle script in vb to scatter some instance objects on the points of a grid ...
i made a loop so eacht point got a cluster and dupligate a model as a instance and ill have
one of him on each clusterpoint ............
now my question is, if i have more than 1 object, say 10 objects and i want them randomly
placed on points on my grid what vb script do i need for that ......
i hope it makes sence
this is what i got sofar
for X = 0 to 80
AddToSelection "grid.pnt["&X&"]", , True
ActivateVertexSelTool
CreateCluster
SetAndToggleSelection "a_1", , True
Instantiate , , 1, 1, 0, 1
SelectObj "a_1_Instance"
ApplyCns "ObjectToCluster", "a_1_Instance", "grid.polymsh.cls.Point"
SetValue "a_1_Instance.kine.objclscns.tangent", True
ApplyCns "Direction", "a_1_Instance", "null"
SetValue "a_1_Instance.Name", "ints"
SetValue "grid.polymsh.cls.Point.Name", "clu"
next
i hope somebody can help me ....
cheers maarten
Email straight to your blog, upload jokes, photos and more. Windows Live Spaces, it's FREE!
|