SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / sel borderVerts and move them to [0 Y Z]
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 27-02-2006, 09:08 PM   #1
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default sel borderVerts and move them to [0 Y Z]

when borderselecting vertices from an object - a halfside modeled face for example - how can I move every single vertex from this selection to 0 (zero) on the X axis?

this is what I came up with until now (reading through the script from Dirk Bialluch at http://www.lightstorm3d.com/download...intToGrid.htm:


rename tmpOrig_1;
ConvertSelectionToVertices;
SelectPolygonSelectionBoundary;
doMenuComponentSelection("tmpOrig_1", "vertex");

/////////////////////////
// deselecting CVs from eye and nose //
/////////////////////////


// filter selected points
string $selPoints[] = `filterExpand -fullPath 1 -expand 1-sm 31`;


// snap points
for( $point in $selPoints )
{
setAttr "tmpOrig_1.pnts[1].pntx" 0;
}





// poor, isnīt it? //

any help or hint in any direction would be greatly appreciated!

Last edited by Falott : 28-02-2006 at 12:27 AM.
Falott is offline   Reply With Quote
Old 28-02-2006, 12:35 AM   #2
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default

what is it?


I need to store the border verts somewhere (array?) to recall them later for performing an action on them.

is it a procedure?
Falott is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.