when you assign a pymel object to a a maya command that expects a string like
this:
textField('jnt2Unlock', e = 1, text = tmpJntList)
what you're really doing is the equivalent of this:
textField('jnt2Unlock', e = 1, text = tmpJntList.name())
meaning, you're assigning the name of the node to the text field. so later
when you do this:
tmpJnts2UnlockString = textField('jnt2Unlock', query=True, text =True )
tmpJnts2Unlock = tmpJnts2UnlockString.split(' ')
tmpJnts2UnlockString is just a string. this is to be expected since you've
just queried the *text* of the ui element. splitting a string yields a list
of strings. text is just text: it's got no maya special goodness. you have
to cast these strings back to pymel objects:
for jnt in tmpJnts2Unlock:
if Attribute(jnt).hasAttr('liw'):
--
http://groups.google.com/group/python_inside_maya