XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : addNewXRefObject and merge window

06-03-2009, 12:12 PM
I'm adding xref objects to scene like this:
xrefs.addNewXRefObject "c:\\test\\test.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' ?

06-04-2009, 08:01 AM
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.

06-05-2009, 05:07 PM
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.

06-10-2009, 12:21 PM
Yep i used custom window, much better control then :)

CGTalk Moderation
06-10-2009, 12:21 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.