listConnections<http://download.autodesk.com/global/docs/maya2012/en_us/CommandsPython/listConnections.html>
plugs(p)    boolean
If true, return the connected attribute names; if false, return the
connected object names only. Default false;

So just add the plugs flag:
cmds.listConnections('mia_material_x_passes1.reflectivity', p=True)



On Mon, Dec 10, 2012 at 8:33 AM, Daz <dariusz1...@gmail.com> wrote:

> Heya
>
> If I may bump this topic instead of making a new one.
>
> I'm trying to write a tool that will disconnect reflectivity/and other
> specific node connections for all selected materials.
>
> But when I type for example..
> cmds.listConnections('mia_material_x_passes1.reflectivity')
> I get
>
> # Result: [u'luminance1'] #
>
> and I need luminance1.outValue so I can use cmds.disctonnectAttr....
>
> How can I get the rest of the node details so I can use it ?
>
> I went over the list connection docts but I failed :(
>
> Thanks, bye.
>
>
> On Friday, 1 June 2012 16:02:08 UTC+1, Justin Israel  wrote:
> > Ahh I always accidentally link to the main index when I paste maya doc
> links, because they freaking use frames. And then it looks like I'm just
> being snooty like "go read the docs".
> > I really meant to be helpful with:
> >
> http://download.autodesk.com/global/docs/maya2012/en_us/CommandsPython/listConnections.html
> >
> >
> > :-)
> >
> >
> >
> > On May 31, 2012, at 11:19 PM, Panupat Chongstitwattana <
> panu...@gmail.com> wrote:
> >
> >
> >
> > Thanks Justin :)
> >
> >
> > On Fri, Jun 1, 2012 at 12:36 PM, Justin Israel <justin...@gmail.com>
> wrote:
> >
> >
> >
> http://download.autodesk.com/global/docs/maya2012/en_us/CommandsPython/index.html
> >
> >
> >
> > default gives you both source and dest connection object names (without
> attr names)
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On May 31, 2012, at 10:13 PM, Judah Baron wrote:
> >
> > You don't need to use a flag to get what you are looking for. Just pass
> in the "node.attr" you are interested in querying, rather than just the
> "node".
> >
> >
> >
> > Ex:
> > cmds.listConnections( "blinn1.color" )
> >
> >
> > You can use various command flags to filter the return.
> >
> >
> > On Thu, May 31, 2012 at 9:56 PM, Panupat Chongstitwattana <
> panu...@gmail.com> wrote:
> >
> >
> > For example, if I want to get the input connection of blinn1.Color only,
> what would be the flag I need?
> >
> > Thanks.
> >
> >
> >
> >
> >
> > --
> >
> > view archives: http://groups.google.com/group/python_inside_maya
> >
> > change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
> >
> >
> >
> >
> >
> >
> > --
> >
> > view archives: http://groups.google.com/group/python_inside_maya
> >
> > change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> >
> > view archives: http://groups.google.com/group/python_inside_maya
> >
> > change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
> >
> >
> >
> >
> >
> >
> >
> > --
> >
> > view archives: http://groups.google.com/group/python_inside_maya
> >
> > change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To post to this group, send email to python_inside_maya@googlegroups.com.
> To unsubscribe from this group, send email to
> python_inside_maya+unsubscr...@googlegroups.com.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To post to this group, send email to python_inside_maya@googlegroups.com.
To unsubscribe from this group, send email to 
python_inside_maya+unsubscr...@googlegroups.com.


Reply via email to