I never understood why the "connections" flag results in the given object
always being first in the returned connection pairs. It seems to make the
results pointless when doing both a source and destination query since you
don't know which is which. Can you make two calls to listConnections which
one being s=True/d=False and the other being s=False/d=True?

On Thu, 19 Mar 2015 5:34 AM Fredrik Averpil <[email protected]>
wrote:

> [cross-posting this as I posted this by mistake on the maya_he3d list too ]
>
> Okay so I want to store connections to and from objects in a python
> dictionary.
>
> I can check what is connected to an object or a certain attribute of the
> object using cmds.listConnections(myobject, plugs=True). But I can't see
> which way the connection was made. So when I recreate the object and want
> to re-create the connection, I don't know which plug is supposed to be the
> source and which plug is supposed to be the destination.
>
> This seems like a very fundamental problem... so I'm guessing I'm missing
> something fundamental too :)
>
> Any ideas?
>
> Cheers,
> Fredrik
>
> --
> 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/CAD%3DwhWOu67u5Zjx-ukeD6iokVpeecCY66ChfCfhN1b39s0xNWw%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWOu67u5Zjx-ukeD6iokVpeecCY66ChfCfhN1b39s0xNWw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAPGFgA3_YXhaqHTc1TsqTnub%3Dup%3D_NPVfrE5j6j%2BmJ%3DB2e3jFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to