QUOTE(Joojaa @ 10/07/05, 01:22 AM)
no double posting!
Actualy atleast in maya 7 normal is allways selected by default for component selections so just setting it to normal mode and middledragging should be enouggh atleast its for me!
[snapback]216678[/snapback]
I eventually figured this out myself. This function allows you to move verts along their normal by a specified amount:
global proc moveVerticesAlongNormal()
{
int $i, $vertexCount;
string $command = "";
string $text;
string $result = promptDialog
-title "Scale along normals"
-message "Enter value:"
-button "OK" -button "Cancel"
-defaultButton "OK" -cancelButton "Cancel"
-dismissString "Cancel"
;
if ($result == "OK") {
$text = promptDialog -query -text
;
$command = "moveVertexAlongDirection";
$vertexCount = size(ls -sl -flatten
);
for($i = 0; $i < $vertexCount; ++$i) {
$command += " -n ";
$command += $text;
}
print($command);
eval($command);
}
};