As in mel before it, I’ve generally forced it to import into a group, and hence have the ability to specify the group name. Then I acquire the new group by name. By definition, its children are the things that were imported. If the new group is undesirable, I un-parent the contents and then delete it once I’ve used it to get a handle on the file contents.
Ugly, but effective. -brad > On Dec 1, 2014, at 3:06 PM, Eric Thivierge <[email protected]> wrote: > > Is there a way to get a pointer / node of the top node of a Maya file that > was imported using the PyMel method "ImportFile"? It seems it may be > returning all of the nodes that are imported and then I'd have to iterate > through them all and see which one doesn't have a parent? > > Thanks, > Eric T. > > -- > 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/547CCA5C.6090608%40hybride.com. > 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/BC1E7265-EFC6-4C44-B2E0-3130A5409576%40fie.us. For more options, visit https://groups.google.com/d/optout.
