Hi,
I was wondering if it is possible to get the uv’s bounding box transformations in maxscript ? I can’t find it anywhere.
Thanks
Bloby
Hi,
I was wondering if it is possible to get the uv’s bounding box transformations in maxscript ? I can’t find it anywhere.
Thanks
Bloby
Not sure if it is what you are looking for but in Unwrap UVW there is a function called get area
<void><Unwrap_UVW>.getArea <bitArray>faceSelection <&float>x <&float>y <&float>width <&float>height <&float>areaUVW <&float>areaGeom
x is Out parameter
y is Out parameter
width is Out parameter
height is Out parameter
areaUVW is Out parameter
areaGeom is Out parameter
Returns the geometry and uvw area, x, y, width and height of the supplied face selection.
Nope That’s the area of the faces I am looking for the bounding box which can be quite diferent if you have a rotation on your uv’s folowed by a scale. I have maybe manage to find a way but that include some maths I would have rather enjoy avoid. But thanks
[QUOTE=Bloby;25831]Nope That’s the area of the faces I am looking for the bounding box which can be quite diferent if you have a rotation on your uv’s folowed by a scale. I have maybe manage to find a way but that include some maths I would have rather enjoy avoid. But thanks :/[/QUOTE]
Ah. Sorry thats the only thing I could find. Thought you wanted like the width and height.
Actually speaking of it, there is something very weird with this function :
“Returns the geometry and uvw area, x, y, width and height of the supplied face selection.”
Which is, after some more tests, false. <&float>width <&float>height do not return the width and height of the supplied face but of it’s bounding box which is fairly different (and mess up with my code )