Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Newbie - mel - Getting points, vrtx or controlpoints

Newbie - mel - Getting points, vrtx or controlpoints

2003-12-02       - By Brian Ward

 Back
Reply:     1     2     3     4     5     6     7  

after you create your object, lets say $obj:

hilite -r $obj;
eval ("hilite -r " + $obj + ".vtx[0:2000000]");

at least i think that's right.
the 2000000 is any number that's definately higher than your vert count.
then just string[] selected and use a for in loop.

~Brian
SOL Chicago

-- -- Original Message -- --
From: "Andres Ramirez" <lists@(protected)>
To: <maya@(protected)>
Sent: Monday, December 01, 2003 11:36 PM
Subject: Re: Newbie - mel - Getting points, vrtx or controlpoints


> 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/>
>

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
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/>