View Full Version : Creating a Poly Expand Script

05 May 2009, 08:30 PM
basically I want to create a script that will duplicate the selected faces and push them away from the original mesh in the direction of the face normal. Duplicating the faces is easy enough, but is it possible to then move the faces in the direction of the face normal for each individual face? Sorry I'm a little new to mel, so I don't know how obvious this might be. Thanks for the help.

05 May 2009, 03:00 AM
You can't move faces on their normal, but you can move verts.

proc moveVertsOnNormal(float $fDistance)
string $saSelection[] = `ls -sl -flatten`;
string $sCommand = "moveVertexAlongDirection";
for($verts in $saSelection)
$sCommand += " -n "+$fDistance;

CGTalk Moderation
05 May 2009, 03:00 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.