MEL:UV選択2点間の距離を取得

//距離を取得したいUV2点を選択後実行します。

string $selUV[]= `ls -sl -fl`;

select -r $selUV[0];

float $UV1[] =`polyEditUV -q`;

select -r $selUV[1];

float $UV2[] =`polyEditUV -q`;

float $UV_distance_1=`mag <<($UV2[0]-$UV1[0]),($UV2[1]-$UV1[1]), 0>>`;

print $UV_distance_1;