cmds.ls ('*pCube1', long=True)
--
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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5329AFAD.5080403%40hybride.com.
For more options, visit https://groups.google.com/d/optout.
send an email to python_inside_maya+__unsub...@googlegroups.com
<mailto:python_inside_maya%2Bunsu...@googlegroups.com>.https://groups.google.com/d/__msgid/python_inside_maya/__5329AFAD.5080403%40hybride.com
To view this discussion on the web visit
<https://groups.google.com/d/msgid/python_inside_maya/5329AFAD.5080403%40hybride.com>__.
For more options, visit https://groups.google.com/d/__optout
<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 python_inside_maya+unsub...@googlegroups.com<mailto:python_inside_maya+unsub...@googlegroups.com>.
https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoLb37cQR4QB8R6eshN1PmT95n3uGY9qJicLtHFoEhQjLw%40mail.gmail.com
To view this discussion on the web visit
<https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoLb37cQR4QB8R6eshN1PmT95n3uGY9qJicLtHFoEhQjLw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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 python_inside_maya+unsub...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5329B11D.4040200%40hybride.com.
https://groups.google.com/d/____msgid/python_inside_maya/____5329AFAD.5080403%40hybride.com
To view this discussion on the web visit
<https://groups.google.com/d/__msgid/python_inside_maya/__5329AFAD.5080403%40hybride.com>
<https://groups.google.com/d/__msgid/python_inside_maya/__5329AFAD.5080403%40hybride.com
<https://groups.google.com/d/msgid/python_inside_maya/5329AFAD.5080403%40hybride.com>__>__.
For more options, visit
https://groups.google.com/d/____optout
<https://groups.google.com/d/__optout>
<https://groups.google.com/d/__optout
<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
https://groups.google.com/d/__msgid/python_inside_maya/__CAM9RXoLb37cQR4QB8R6eshN1PmT95__n3uGY9qJicLtHFoEhQjLw%40mail.__gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoLb37cQR4QB8R6eshN1PmT95n3uGY9qJicLtHFoEhQjLw%40mail.gmail.com>
<https://groups.google.com/d/__msgid/python_inside_maya/__CAM9RXoLb37cQR4QB8R6eshN1PmT95__n3uGY9qJicLtHFoEhQjLw%40mail.__gmail.com?utm_medium=email&__utm_source=footer
<https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoLb37cQR4QB8R6eshN1PmT95n3uGY9qJicLtHFoEhQjLw%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
For more options, visit https://groups.google.com/d/__optout
<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 python_inside_maya+__unsub...@googlegroups.com
https://groups.google.com/d/__msgid/python_inside_maya/__5329B11D.4040200%40hybride.com
<https://groups.google.com/d/msgid/python_inside_maya/5329B11D.4040200%40hybride.com>__.*Marcus Ottosson*
For more options, visit https://groups.google.com/d/__optout
<https://groups.google.com/d/optout>.
--
konstr...@gmail.com <mailto:konstr...@gmail.com>
--
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 python_inside_maya+unsub...@googlegroups.com
<mailto:python_inside_maya+unsub...@googlegroups.com>.
To view this discussion on the web visit
python_inside_maya+______unsub...@googlegroups.com
<mailto:python_inside_maya%2B____unsubscribe@googlegroups.com>
<mailto:python_inside_maya%2B____unsubscribe@googlegroups.com
<mailto:python_inside_maya%252B__unsubscribe@googlegroups.com>>
<mailto:python_inside_maya%____2Bunsubscribe@googlegroups.com
<mailto:python_inside_maya%25__2Bunsubscribe@googlegroups.com>
<mailto:python_inside_maya%__252Bunsubscribe@googlegroups.__com <mailto:python_inside_maya%25252Bunsubscribe@googlegroups.com>>__>.
To view this discussion on the web visit
https://groups.google.com/d/____msgid/python_inside_maya/____CAM9RXoLb37cQR4QB8R6eshN1PmT95____n3uGY9qJicLtHFoEhQjLw%__40mail.__gmail.com
<https://groups.google.com/d/__msgid/python_inside_maya/__CAM9RXoLb37cQR4QB8R6eshN1PmT95__n3uGY9qJicLtHFoEhQjLw%40mail.__gmail.com>
<https://groups.google.com/d/__msgid/python_inside_maya/__CAM9RXoLb37cQR4QB8R6eshN1PmT95__n3uGY9qJicLtHFoEhQjLw%40mail.__gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoLb37cQR4QB8R6eshN1PmT95n3uGY9qJicLtHFoEhQjLw%40mail.gmail.com>>
<https://groups.google.com/d/____msgid/python_inside_maya/____CAM9RXoLb37cQR4QB8R6eshN1PmT95____n3uGY9qJicLtHFoEhQjLw%__40mail.__gmail.com?utm_medium=__email&__utm_source=footer
<https://groups.google.com/d/__msgid/python_inside_maya/__CAM9RXoLb37cQR4QB8R6eshN1PmT95__n3uGY9qJicLtHFoEhQjLw%40mail.__gmail.com?utm_medium=email&__utm_source=footer>
<https://groups.google.com/d/__msgid/python_inside_maya/__CAM9RXoLb37cQR4QB8R6eshN1PmT95__n3uGY9qJicLtHFoEhQjLw%40mail.__gmail.com?utm_medium=email&__utm_source=footer
<https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoLb37cQR4QB8R6eshN1PmT95n3uGY9qJicLtHFoEhQjLw%40mail.gmail.com?utm_medium=email&utm_source=footer>>>.
For more options, visithttps://groups.google.com/d/____optout
<https://groups.google.com/d/__optout>
<https://groups.google.com/d/__optout
<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
<mailto:python_inside_maya%252Bunsubscribe@googlegroups.com>__>.
To view this discussion on the web visit
https://groups.google.com/d/____msgid/python_inside_maya/____5329B11D.4040200%40hybride.com
<https://groups.google.com/d/__msgid/python_inside_maya/__5329B11D.4040200%40hybride.com>
<https://groups.google.com/d/__msgid/python_inside_maya/__5329B11D.4040200%40hybride.com
<https://groups.google.com/d/msgid/python_inside_maya/5329B11D.4040200%40hybride.com>__>__.<mailto:konstr...@gmail.com <mailto:konstr...@gmail.com>__>
For more options, visit
https://groups.google.com/d/____optout
<https://groups.google.com/d/__optout>
<https://groups.google.com/d/__optout
<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
https://groups.google.com/d/__msgid/python_inside_maya/__CAFRtmOCB%__2BTeeUmXjjM2eBYbnFLDELt%2BZB-__gBfH8L2L1QChnE-w%40mail.gmail.__com
<https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCB%2BTeeUmXjjM2eBYbnFLDELt%2BZB-gBfH8L2L1QChnE-w%40mail.gmail.com>
<https://groups.google.com/d/__msgid/python_inside_maya/__CAFRtmOCB%__2BTeeUmXjjM2eBYbnFLDELt%2BZB-__gBfH8L2L1QChnE-w%40mail.gmail.__com?utm_medium=email&utm___source=footer
<https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCB%2BTeeUmXjjM2eBYbnFLDELt%2BZB-gBfH8L2L1QChnE-w%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
For more options, visit https://groups.google.com/d/__optout
<https://groups.google.com/d/optout>.
--
*Marcus Ottosson*
konstr...@gmail.com <mailto:konstr...@gmail.com>
<mailto:python_inside_maya%252Buns...@googlegroups.com>__>.
https://groups.google.com/d/____msgid/python_inside_maya/____5329AFAD.5080403%40hybride.com
To view this discussion on the web visit
<https://groups.google.com/d/__msgid/python_inside_maya/__5329AFAD.5080403%40hybride.com>
<https://groups.google.com/d/__msgid/python_inside_maya/__5329AFAD.5080403%40hybride.com
<https://groups.google.com/d/msgid/python_inside_maya/5329AFAD.5080403%40hybride.com>__>__.
For more options, visit
https://groups.google.com/d/____optout
<https://groups.google.com/d/__optout>
<https://groups.google.com/d/__optout
<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 python_inside_ma...@googlegroups.com
<mailto:python_inside_maya%2Bunsu...@googlegroups.com>
<mailto:python_inside_ma...@googlegroups.com
https://groups.google.com/d/__msgid/python_inside_maya/__CAM9RXoLb37cQR4QB8R6eshN1PmT95__n3uGY9qJicLtHFoEhQjLw%40mail.__gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoLb37cQR4QB8R6eshN1PmT95n3uGY9qJicLtHFoEhQjLw%40mail.gmail.com>
<https://groups.google.com/d/__msgid/python_inside_maya/__CAM9RXoLb37cQR4QB8R6eshN1PmT95__n3uGY9qJicLtHFoEhQjLw%40mail.__gmail.com?utm_medium=email&__utm_source=footer
<https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoLb37cQR4QB8R6eshN1PmT95n3uGY9qJicLtHFoEhQjLw%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
For more options, visit https://groups.google.com/d/__optout
<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 python_inside_ma...@googlegroups.com
https://groups.google.com/d/__msgid/python_inside_maya/__5329B11D.4040200%40hybride.com
<https://groups.google.com/d/msgid/python_inside_maya/5329B11D.4040200%40hybride.com>__.*Marcus Ottosson*
For more options, visit https://groups.google.com/d/__optout
<https://groups.google.com/d/optout>.
--
konstr...@gmail.com <mailto:konstr...@gmail.com>
--
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
To view this discussion on the web visit
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODcD4zs%3DKJhAYr2e4DKcvhtZ%2BQMXwYRbKPz2M2zP7rXSg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/532D3739.7010301%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/532D3739.7010301%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODzpL3_XLs29OaxrTuwmG8pKcLfKadOtE3bgKGJE%3D%2BWVw%40mail.gmail.com.
I think the Python API 2.0 is already in effect (since Maya 2013 or so) but only applies to the API. maya.cmds on the other hand is a wrapper around MEL independent of the underlying API and so wasn't affected by that change, PyMEL is then a another wrapper on-top of that wrapper, but I think PyMEL uses some of the Python API for some of its more esoteric features; possibly to distinguish between nodes, I'm not sure.
If you truly needed a sustainable, persistent "absolute path" to the nodes you create, you could do what I suspect Maya does internally; which is to assign a unique identifier (UUID, GUID or similar) to an attribute within your node. You could then use this attribute to distinguish nodes from each other, even though they may have the same name.
# Psuedo-code, bear with me.
# Step 1. Create node with unique identifiergroup = cmds.createNode('transform') # Will produce a unique namecmds.addAttr(group, 'uid', 'my_unique_identifier', dt='string')cmds.rename(group, 'myCommonName') # Absolute path is lost into oblivion..
# Step 2. Find node by unique identifierexact_result = Nonemultiple_results = cmds.ls('myCommonName', long=True) # May return multiple nodesfor result in multiple_results:uid = cmds.getAttr(result + ".uid")if uid == my_special_id:exact_result = result
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/532E4BD0.3000501%40gmail.com.
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/532F42AF.5030004%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CACt6Gr%3DnQnOc1dg%2BbhJvBfTq-eeqCbe0tvA9BtvRvvnUPvi9TQ%40mail.gmail.com.