This description in the docs is not correct, as this function can still
return type kPlugSelectionItem, in addition to the other three listed. You
will see if you run the example script I pasted that it will print:

 locator1 is a valid dagpath

locator1.rotateX is not a valid dagpath. It is item type 3

locator2 is a valid dagpath

locatorShape2 is a valid dagpath

"item type 3" (in the case of the locator1.rotateX plug) corresponds to type
kPlugSelectionItem in the selItemType
enum<http://download.autodesk.com/us/maya/2010help/API/class_m_it_selection_list.html#be4d283ac9f6e6b587c73786653b9a35>
.

On Thu, Jan 7, 2010 at 9:18 PM, subbaiah addanki <[email protected]>wrote:

> I think attributes are not plugs in this case.
> As shown here, attribute is not a selection item in selection DAG
>
> MItSelectionList::selItemType MItSelectionList::itemType ( MStatus *  *
> ReturnStatus* = NULL  )
>
> Returns the current selection item type.
>
> *Parameters:* [out] *ReturnStatus* Status code  *Returns:*
>
>    - kDagSelectionItem - selection item is in the DAG
>    - kAnimSelectionItem - selection item is a keyset
>    - kDNselectionItem - selection item is a dependency node
>
>  *Status Codes:*
>
>    - *MS::kSuccess* The selection item type was successfully returned
>    - *MS::kFailure* Iterator error
>
>  This is my opinion only.
>
> Subbu
>
>
>
> --
> http://groups.google.com/group/python_inside_maya
>
-- 
http://groups.google.com/group/python_inside_maya

Reply via email to