[Closed] addNewXRefObject and merge window
I’m adding xref objects to scene like this:
xrefs.addNewXRefObject "c:\ est\ est.max" "testbox_2"
But if I have multiple objects and/or I dont know object names, is it possible to get merge window visible? Like when you’re using ‘File -> XRef Objects -> Create XRef Record from File’ ?
Little update: so far i haven’t got merge window visible, but i can do custom list of possible objects using getmaxfileobjectnames(). Maybe this is even better solution because now I can strip unwanted objects from list based on their name etc. if needed.
I think you’re on the right track. The native functions don’t allow you to open the UI, so you’d have to build your own.
If you want the original UI, you would have to use:
max file xref object
max file xref scene
However, they don’t give you any control… they are exactly the same as the user picking the options from the File menu.