threedian
05-14-2007, 09:07 PM
hi all
im new to maxscript but starting to get the hang of it. One thing i can't find any information about, either in the maxscript reference or on the net, is how to get the height, width and depth of an editable poly
here's was my thoughts have been sofar after lots of reading and experiments - is it a case of going through the model's vertices and finding the one with the lowest x value, storing it, then finding the vertex with the highest x value and subtracting them?
the listener outputs -5 and 5 for the first and second vertices' x values which is obviously because its in local coordinate system so i multiply the -5 by -1?
im kinda halfway there but im not sure if im doin this the right way
any help would be appreciated :)
im new to maxscript but starting to get the hang of it. One thing i can't find any information about, either in the maxscript reference or on the net, is how to get the height, width and depth of an editable poly
here's was my thoughts have been sofar after lots of reading and experiments - is it a case of going through the model's vertices and finding the one with the lowest x value, storing it, then finding the vertex with the highest x value and subtracting them?
the listener outputs -5 and 5 for the first and second vertices' x values which is obviously because its in local coordinate system so i multiply the -5 by -1?
im kinda halfway there but im not sure if im doin this the right way
any help would be appreciated :)
