import maya.cmds as cmds

cmds.aliasAttr('head_deform.weight[0]', q = True)

On Mon, Aug 30, 2010 at 12:55 AM, r4inm4ker <[email protected]> wrote:

> Hi all,
> I'm using pymel listConnections(s=0,d=1,c=1,p=1)  to get the
> connection pairs between two nodes. But now I'm facing a problem :
> some nodes (like blendshape) seem to have alias names for its
> attribute. For example one of the results when calling the
> listConnections above was : (Attribute(u'head_deform_l_blink.output'),
> Attribute(u'head_deform.weight[0]')). Another name for
> "head_deform.weight[0]" was "head_deform.l_blink", and i'd prefer the
> latter one for some renaming/mirroring reasons. Interestingly, both
> mel and maya python listConnections return the name 'l_blink' for that
> attribute, only pymel returns weight[0]. So is there any command in
> pymel to convert between those two names?
>
> Thanks,
> Jefri.
>
> --
> http://groups.google.com/group/python_inside_maya
>

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

Reply via email to