View Single Post
# 2 07-11-2004 , 03:10 AM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
To get the vertex pos do this:

float $fVtxPos[] = `xform -q -ws -t ($sObjName + ".vtx[0]")`;

I think this would return all vertex positions associated to a face...

float $fVtxPos[] = `xform -q -ws -t ($sObjName + ".f[0]")`;

there might be an easier way for getting the face center. not sure...


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!