PDA

View Full Version : Area in unwrap uvw help....


Gibbz
06-18-2006, 07:21 AM
Hey guys, im using the following to retun an area of a face while in unwrap mode

myObj.modifiers[#unwrap_uvw].unwrap4.getArea #{1..3} myValX myValY myValWidth myValHeight myValAreaUVW myFaceArea

myFaceArea and the other values all retun as undefined. Any ideas on what im doing wrong in this case?



<void>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.

Bobo
06-18-2006, 08:09 AM
Hey guys, im using the following to retun an area of a face while in unwrap mode

myObj.modifiers[#unwrap_uvw].unwrap4.getArea #{1..3} myValX myValY myValWidth myValHeight myValAreaUVW myFaceArea

myFaceArea and the other values all retun as undefined. Any ideas on what im doing wrong in this case?



<void>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.




As mentioned in the help, all the return values are passed by reference. So you are most probably missing the &


myObj.modifiers[#unwrap_uvw].unwrap4.getArea #{1..3} &myValX &myValY &myValWidth &myValHeight &myValAreaUVW &myFaceArea

Gibbz
06-18-2006, 08:13 AM
Hrmm, i had not clue on that :) ill check out more info on that.

Cheers :)

CGTalk Moderation
06-18-2006, 08:13 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.