Malard
07-17-2010, 09:02 AM
Hey guys im trying to figure out how to retrieve the UV cords of selected verts in the UVW editor. What im trying to achive is a way of aligning selected verts based on the first and last vert in the bitarray. This would allow aligning of any vertex along an edge line at any angle.
i got this simple code sofar which returns each vert's bitarray ID
for vert in ($.modifiers[#unwrap_uvw].unwrap.getSelectedVertices()) do
(
print vert
)
but i cant figure out for the life of me how to get two simple numbers from each ID. there isnt any "$.modifiers[#unwrap_uvw].unwrap.returnUVcords() <bitarray>" command
>.<
once im able to get these UV cords it will be a breeze for me
i got this simple code sofar which returns each vert's bitarray ID
for vert in ($.modifiers[#unwrap_uvw].unwrap.getSelectedVertices()) do
(
print vert
)
but i cant figure out for the life of me how to get two simple numbers from each ID. there isnt any "$.modifiers[#unwrap_uvw].unwrap.returnUVcords() <bitarray>" command
>.<
once im able to get these UV cords it will be a breeze for me
