selectedObject = cmds.ls( selection=True) dagObject = selectedObject[0].split('.')[0] cmds.select(dagObject)
Currently I am able to return the dag object by using a split method, is there a cleaner way of doing this? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b36e49be-3d5b-4969-8175-c6468b3acd18%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.