
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I'm with UV 😭 . So I want to get information about my UVs. I'm using the "Unwrap UVW" modifier and the UV Editor. I want to use this function :
<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
You can find everything about it here : https://help.autodesk.com/view/3DSMAX/2020/ENU/?guid=GUID-496CE46A-EBD3-40C2-9637-3F21E0F0B0FB
As I understand it, it got 7 parameters and 6 are used to get the information.
Unfortunately, when I use it, my 6 out parameters are not updated (and the function return a boolean instead of nothing but the value is True so it's cool I guess ¯\_(ツ)_/¯).
My code (in python) look like this :
selectedPoly = mUnwrap.unwrap.getSelectedPolygons()
print selectedPoly
x = 1
y = 2
w = 3
h = 4
area = 5
areaGeom = 6
print mUnwrap.unwrap4.getArea(selectedPoly, pymxs.mxsreference(x), pymxs.mxsreference(y), pymxs.mxsreference(w), pymxs.mxsreference(h), pymxs.mxsreference(area), pymxs.mxsreference(areaGeom))
print (str(x)+" , "+str(y)+" , "+str(w)+" , "+str(h)+" , "+str(area)+ " , "+str(areaGeom))
Sorry, it's badly written code but I'm just trying stuffs... It's no time for good code 😅
Anybody has an idea why my references are not updating ? If you want more informations I'll be glad to answer you 😄
PS : Yes I have selected Polygons in my variable `selectedPoly` and no exception or error are thrown
PS2: It's not the first time I use references with pymxs and everything went well before so I just don't understand
Thanks
Solved! Go to Solution.