Yeah.  It's listed as a 'known api limitation':

Selecting multiple types of object components

When multiple types of object components are selected, e.g. edges and
vertices, an MSelectionList that has been assigned the active selection list
will contain only the final type of component selected. For example if edges
were selected and then vertices were shift-selected the MSelectionList
representing the active selection list will contain one MObject representing
the vertex components.

Workaround

MItSelectionList list will differentiate between the different components
selected and can be used to identify all of the various components selected.

- Paul

On Mon, Nov 30, 2009 at 2:10 PM, Brandon Harris <[email protected]>wrote:

> That's odd. When I get the length of the active selection list it's
> only 1 but I can still itr through it?
>
>
>
>             # if no parents of this revision will be stripped, mark it as
>             # a savebase
>
>
>
>
>
>
>
>
> On Nov 30, 3:48 pm, Paul Molodowitch <[email protected]> wrote:
> > The powers that be have decreed that you need to use an MItSelectionList
> to
> > do this, I believe.
> >
> > - Paul
> >
> > On Mon, Nov 30, 2009 at 12:30 PM, Brandon Harris <[email protected]
> >wrote:
> >
> > > Working on a way of getting an MSelectionList of multiple component
> > > types. For example, if I select both Vertices and Edges and then grab
> > > the active selection, it only returns the component type that was
> > > first selected so one of the types gets ignored.
> >
> > > any help would be awesome!
> >
> > > thanks!
> >
> > > Brandon L. Harris
> >
> > > --
> > >http://groups.google.com/group/python_inside_maya
> >
> >
>
> --
> http://groups.google.com/group/python_inside_maya
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to