PDA

View Full Version : mergemaxfile question


Pongoloid!
03-12-2005, 05:46 PM
Is it possible to use mergeMaxFile to merge a specific object from a file? Like if I use getmaxfileobjectnames and I only want to merge the second object in the array?

EverZen
03-16-2005, 10:38 AM
Hope this one liner is what you are looking for. As long as you have the file path, then place the objects you want merged into an array as shown in the below example. I have used this in my leaf scattering tool to select specific leaves out of a max file just full of leaves.

mergemaxfile "Z:\\ScriptingLibrary\\Leaves\\leaves.max" #("leaf01") #select #MergeDups

In short, all you need is to carefully label objects and you should be fine. Flags like #select and #MergeDups are useful if you want to instantly have the merged object selected, and for merging more than one copy of an object, without deleting other copies in the scene.

Hope this helps :)

EverZen

Pongoloid!
04-01-2005, 11:36 PM
Thanks! That's exactly what I was looking for.

CGTalk Moderation
04-01-2005, 11:36 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.