  | | | Newbie - mel - Getting points, vrtx or controlpoints | Newbie - mel - Getting points, vrtx or controlpoints 2003-12-02 - By Andres Ramirez
Back This is great ... but I'm also after a way to select the cv's to begin with using mel. I'm creating a shape with mel, which I then need walk through its cv's. So I either need to find a way to automatically select all the CV's or somehow get a list of them.
Thank you ... I'm learning a lot so far.
- Andres
On Monday, December 1, 2003, at 01:05 PM, Aleksandar Stiglic wrote:
> 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/> > > 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/>
|
|
 |