@Justin I was calling cmds.ls(sel, type='stkLevel') as a check to see if it is a stkLevel nodetype. If it is true and depending on how many items are being selected, it will check and iterate accordingly. I believe my algorithm is not written properly here.. I am expecting stkLevel_node[0] to be returned as the fullpath of the Root node if the selection is 1 and if it is of stkLevel nodetype.
@Remi I am planning to use cmds instead of pymel, rather than introducing a new module. WIthin my code, I have been using cmds, and hence I thought of standardizing it but I shall give a go to see if I can convert into cmds terms if possible -- 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/fa1e5a71-c17a-4fd0-9903-a2daf084725f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.