Bleh, How embarrassing. Didn't even consider that. Docs just said a
SelectionList and I ran with it. Thanks!!

On Nov 17, 2:02 pm, Makoto <[email protected]> wrote:
> To use MRichSelection class, you need to get current selection using
> MGlobal like this,
>
> import maya.OpenMaya as OpenMaya
>
> richSelectList = OpenMaya.MRichSelection()
> OpenMaya.MGlobal.getRichSelection(richSelectList)
>
> then, you can do something like...
>
> richSelectList.getSymmetryMatrix()
> richSelectList.getSymmetryPlane()
>
> Thanks,
> Makoto
>
> On 17 Nov, 16:04, Brandon Harris <[email protected]> wrote:
>
> > OK. Trying to use MRichSelection to get a hold on soft selection Data.
> > Here is my process
>
> > import maya.OpenMaya as openMaya
>
> > #attempt  1
> > softSelection = openMaya.MRichSelection()
> > richSelection = softSelection.getSelection(openMaya.MSelectionList())
>
> > #attempt 2
> > selection = openMaya.MSelectionList()
> > softSelection = openMaya.MRichSelection()
> > softSelection.getSelection(selection)
>
> > either way I do this it returns
>
> > # Error: (kFailure): Object does not exist
> > # Traceback (most recent call last):
> > #   File "<maya console>", line 4, in <module>
> > # RuntimeError: (kFailure): Object does not exist #
>
> > Just to note, I do have soft selection turned on and I have vertices
> > selected on a mesh, so this should work if the documentation is
> > correct.
>
>

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

Reply via email to