I think what the author is looking for is a way to pick the objets to import prior to actually importing everything in the scene. Marcus's option is valid (or any similar option, using namespaces, comparing two sets of ls -sl, etc...), but it forces to "do/undo", as in import then delete, which can possibly be heavy for huge scenes.
I may be wrong, but this is how I understood the request Le dimanche 31 juillet 2022 à 07 h 10 min 03 s UTC-4, Juan Moraga a écrit : > I'd go with Marcus' solution too as it seems a very clean solution; you > can also try to import the files under a namespace and then query the > objects in that namespace, atho this one is not as neat! > > On Sun, 31 Jul 2022, 12:03 Marcus Ottosson, <konstr...@gmail.com> wrote: > >> Unsure whether this’ll work with all file formats, but for native Maya >> files there’s the returnNewNodes argument for cmds.file(), you can pass >> that to cmds.select(). >> >> - >> >> https://help.autodesk.com/cloudhelp/2020/ENU/Maya-Tech-Docs/CommandsPython/file.html#flagreturnNewNodes >> >> >> >> On Sun, 31 Jul 2022 at 11:14, DGFA DAG's GRAPHIC & FOTO ART < >> gerom...@gmail.com> wrote: >> >>> Hi, >>> >>> how can I select imported objects and just this that are imported? >>> Whan would import objects such as obj, fbx abc and so on I have the >>> solution, but when importing a maya scene containing some or just one >>> object I do not have any clue how to master it. >>> >>> Do anybody have an advice for me? >>> >>> Thanks >>> D. >>> >>> -- >>> 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/f04f5e39-35e7-47de-aab5-60ab9bc2b14bn%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/python_inside_maya/f04f5e39-35e7-47de-aab5-60ab9bc2b14bn%40googlegroups.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_m...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAwYBJgwaikfydKfZvsHksdanopy7E%2BseSPpX5-OJbucQ%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAwYBJgwaikfydKfZvsHksdanopy7E%2BseSPpX5-OJbucQ%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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/93680c1f-f729-47b2-8a4a-1f9f471751a1n%40googlegroups.com.