
5 ] ~ CHAPTER IO Subdivision Surfaces
The world space position of the vertex is determined using the
p0i ntP0si t i
on com-
mand with the -w flag. If the object space position of the vertex is needed, simply use
$pos = "getAttr $verts[$v]';.
$pos = "pointPosition -w $verts[$v]'.
The uv coordinate is retrieved by using the getAttr command. It returns an array of
two floats.
$uv = "getAttr $uvs[$v]'-
There is no standard MEL command to give the valency of a vertex. It can be calcu-
lated, however, by counting the number of edges sharing the vertex. The
subdListComponentConversion
command is called with the -fromvertex ...