[Closed] mergemaxfile question
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?
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