Hey Aren,

That (usually) happens when you have more than one node with the same name. 
Maya resolves the conflict by showing the entire path. 

You can still use .nodeName() if you need to grab just the name without the 
path. But watch out for conflicts.

> On Oct 18, 2015, at 11:40 PM, Aren Voorhees <[email protected]> wrote:
> 
> Hey all,
> 
> I've noticed this sort of thing sometimes when using pymel.  If I run 
> something like: curSel = pm.selected()[0] with a joint selected it will 
> normal return: 
> 
> // Result: nt.Joint(u'Hand_L_Result_JNT) //
> 
> That result is expected, but then other times it returns the entire hierarchy 
> like this: 
> 
> // Result: 
> nt.Joint(u'Arm_L_Upper_Result_JNT|Arm_L_UpperRoll_Result_JNT|Arm_L_Lower_Result_JNT|Arm_L_LowerRoll_Result_JNT|Hand_L_Result_JNT')
>  //
> 
> It seems to happen randomly and I haven't figured out how to get rid of it.  
> Does anyone know what causes this, and how to prevent it?
> 
> Thanks!  
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/python_inside_maya/02b926c5-91cc-466a-a875-3c6bea34330d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/A10FE21E-7E9C-492C-9B83-DCF9C4924DF7%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to