PDA

View Full Version : how to make a loop to select components of Polygon objects in turn



scoonani
10-18-2008, 02:49 PM
Hi, I'm very new to Mel and am trying to figure out a script to do the following:

Let's say I have a Poly sphere made up of over 500 vertices, and I have about 500 Poly planes that I want to snap to each of those vertices on the Sphere. The poly sphere is called pSphere1 and the planes are numbered pPlane1 to pPlane500. Now I can select a vertex of a plane and then shift select a vertex of the sphere and choose Modify>snap align objects> point to point. But, I don't want to have to do this 500 times :). Can anyone help me write a script to loop the procedure? Thanks so much! :bow