Merging a specific object from a file?

I'm quite new to scripting so bear with me.

Essentially what I'm wanting to do is have a low poly object Box01 in one file and run a script. The script would look into library.max for an object with the name Box01 and if it exists, would replace my low poly object.

I can merge in a whole scene, but is there a way to look for that specific object by name?

-Brodie

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kimarotta's picture

I got a result with this

I got a result with this ...

mergeObj = #("Box001")
 
mergemaxfile "test.max" mergeObj

but take a look at for more details ... Search for Merging MAX Files

http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/

MAXScript Tools and Interaction with 3ds Max > File Access > 3ds Max Scene Files Access >

kimarotta.com.br
3d Artist  

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.