Re: scripting question ....

Date : Wed, 18 Jul 2007 13:17:12 -0400
To : XSI(at)Softimage.COM
From : takita <takita(at)earthlink.net>
Subject : Re: scripting question ....
Hair instancing might not be a bad candidate if you've got it.

Otherwise you could do something like:
-put the grid points to a row/column array
-apply a 3point constraint to the point itself, the point ahead on the same row (or behind if you are at the end of a row) and the same row # at the column ahead (or behind if you are on an end column).
-then randomize the weight values for the 3point constraint


a better scripting person coulda probably scripted it faster than I wrote that but you get the idea...

-T

maarten heinstra wrote:


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! <http://specials.uk.msn.com/spaces/default.aspx%20>


--


A.K.I.T.A.: Artificial Killing and Immediate Troubleshooting Android

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.