Merging multiple max files with rt.mergeMaxFile

Merging multiple max files with rt.mergeMaxFile

Anonymous
Not applicable
2,835 Views
3 Replies
Message 1 of 4

Merging multiple max files with rt.mergeMaxFile

Anonymous
Not applicable

Hey y'all!

 

I'm a bit stuck with this current issue. I feel like it would be nice if there was better documentation.

 

I'm trying to merge multiple files at once with rt.mergeMaxFile, and it does work fine, but I'm not able to set extra arguments.

 

The only documentation I can find is here: https://help.autodesk.com/view/3DSMAX/2019/ENU/?guid=GUID-624D3D05-B15D-4A97-9F15-DA35CDB0DDD2#GUID-...

 

It has a bunch of extra arguments you can provide in what I'm assuming is MaxScript, but I can't seem to make it work with pymxs.

 

Basically what I need is to be able to skip or merge materials, and not prompt every time it loads the file.

I'm trying to merge more than 30 max files at a time, so having the prompt for whether I want to skip or merge a material or object is quite a slow down.

 

Any help would be greatly appreciated it!

 

Thanks!

0 Likes
Accepted solutions (1)
2,836 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

Use rt.Name() for MaxScript #name constants.

 

Example:

rt.mergeMaxFile (productScene, rt.Name("select"), rt.Name("autoRenameDups"), rt.Name("renameMtlDups"))

I should note that thing might fail when using 3dsmaxbatch.exe due to 3dsMax bugs.

0 Likes
Message 3 of 4

Anonymous
Not applicable

Thank you so much! This is exactly what I was looking for. It worked great.

Another quick question though...where would I found information for pymxs like the one you provided?

 

In the style of:    'Use rt.Name() for MaxScript #name constants.'

 

The only thing I've found is in the python section of the documentation but it doesn't explain things in this manner.

 

Thanks again!

0 Likes
Message 4 of 4

Anonymous
Not applicable
0 Likes