Ahaa, yes that is a possible interpretation of the question.

In that case, you can't. :) This is USD/Alembic/Katana behaviour that Maya
has not implemented.

One way you can work around it, if you know ahead of time this is what you
want, is that you can:

1. Start a new scene
2. Create 1 reference for every object you would like to control the import
of, such as 10 barrels and 5 cats.
3. Unload all references
4. Save this scene

This is now your "asset", something you can selectively import things from.

Next, when you import or reference this file, your Reference Editor can now
be used to selectively import (well, reference) things from this file.

That process could potentially be automated and wrapped into a nice UI,
similar to how more fancy tools let you selectively import things. But, it
is very limited to the things you explicitly do this for.. There's an
option to create a reference without loading any sub-references, which can
make it more able.

[image: image.png]

But I think that's it?

Hope it helps!

On Sun, 31 Jul 2022 at 13:32, vince touache <fruityfr...@gmail.com> wrote:

> 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
> <https://groups.google.com/d/msgid/python_inside_maya/93680c1f-f729-47b2-8a4a-1f9f471751a1n%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_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBraNqCw9ENWR8KuYdobCoJM4eG5gmKd3X3OsQqbV6%3D9A%40mail.gmail.com.

Reply via email to