Dont feel I explained what im trying to clearly so changed the title, I want to align objects to the centre of a quad's face, every time I try aligning to face it picks up the the two triangle faces.
vertexCount = getNumVerts $.mesh
for i = 1 to vertexCount do
(
my_House = Box name: "my_House"
randomScale = [random 1 3, random 1 3, random 1 4]
my_Copy = copy my_House
my_Copy.rotation.controller.z_rotation = random 0 360
my_copy.Scale = randomScale
newPos = getVert $.mesh i
newPos = newPos * $.Transform
my_Copy.pos = newPos
)
I guess I need some way of collecting all the faces, finding their center point and normal direction then applying an object to those coordinates.
Thanks folks :)
By Vapourise · 2011-11-02
kogen · 2011-11-14