PDA

View Full Version : addNewXRefObject and merge window


VVaari
06-03-2009, 01: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' ?

VVaari
06-04-2009, 09: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.

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

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

CGTalk Moderation
06-10-2009, 01: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.