I suspect you'll need to come at the problem from the other end; of only 
*exporting* the nodes you want to be referenced later.

There is no way, to my knowledge, to selectively reference a file. The one 
exception being a reference with another reference inside of it; so 
potentially if you could split your custom nodes into a reference of their 
own, and reference that into your file? Effectively a hierarchy of 
references inside of that one referenced file. Sounds awefully complex 
haha, but that would be the closest thing.

Not even a post-import/reference callback (which does exists) would work, 
because nodes can't be deleted from a referenced file.

On Wednesday, 26 January 2022 at 14:31:59 UTC [email protected] wrote:

> Hi there
>
> I would like to avoid having some custom node types imported via 
> referenced scenes, as they just create clutter and confusion for the users.
>
> I checked the docs and didn't find much on the topic.
>
> Ideally, I would prefer to tag a nodeType as non-loadable when referenced 
> but I am happy to consider anything, including running a post-import 
> callback to unload these undesirable nodes (if possible) or whatever.
>
> Cheers
>

-- 
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/96c8cb4c-071f-4548-b1c6-0daef73f76can%40googlegroups.com.

Reply via email to