Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   sel borderVerts and move them to [0 Y Z] (https://simplymaya.com/forum/showthread.php?t=20413)

Falott 27-02-2006 10:08 PM

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!

Falott 28-02-2006 01:35 AM

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?


All times are GMT. The time now is 07:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018