  | | | Newbie - mel - Getting points, vrtx or controlpoints | Newbie - mel - Getting points, vrtx or controlpoints 2003-12-01 - By Aleksandar Stiglic
Back Drag and drop this script in shelf. Select some objects (objects, points, vertices, even particles) and click on mel script. It will make nice curve...
//-- -----Example-- ---- ---- ----- // change to curve -d 1 if needed straight curves string $mika ="curve -d 3 "; string $objList[] = `ls -sl -flatten`; int $count = `size ($objList)`; $count -= 1; for ($count; $count >= 0; $count--) { // check xform command to find more options to quary... $c2 = `xform -q -ws -t $objList[$count]`; string $mikx = $c2[0]; string $miky = $c2[1]; string $mikz = $c2[2]; $mika = ( $mika + "-p " + $mikx + " " + $miky + " " + $mikz + " " ); };
eval ($mika);
//-- ---- ---- ---- ---- ---- ---- -----
Hope this helps
Aleksandar
Andres Ramirez wrote:
> Hello, > > I want to make a script that places certain things on either the > vertices of a surface or it's control points. I can't > seem to find a way to get the info on these from the selected object. > > Any pointers in the right direction will be very much appreciated. > > Thanks > > - Andres > > Andres Ramirez > Pixeldream Inc. > andres@(protected) > http://www.pixeldream.com > P: 201-963-6063 > C: 617-413-8582 > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > List-help: <mailto:listar@(protected)?Subject=help> > List-unsubscribe: <http://www.highend3d.com/maya/listserver/> > List-subscribe: <http://www.highend3d.com/maya/listserver/> > List-archive: <http://www.highend3d.com/maya/archive/>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-unsubscribe: <http://www.highend3d.com/maya/listserver/> List-subscribe: <http://www.highend3d.com/maya/listserver/> List-archive: <http://www.highend3d.com/maya/archive/>
|
|
 |