Notifications
Clear all
[Closed] Import .obj using a material library
Jan 19, 2007 7:34 pm
I was wondering how I would go about importing a .obj model and having it use a material library file I have with it. This would be useful due to the mass amount of objects being imported.
A section of my current import script looks like this:
importFile (“Permutation[0].obj”) #noPrompt
$default.pos = [-11.2,0.3334651,-0.6332824]
$default.name = “wall_cap_right”
Rather than #noPrompt, is there a way I can make it not show the import prompt, but still import using the material library (“Permutations.mtl”)?
1 Reply
Jan 19, 2007 7:34 pm
Hi,
3 ways!
- Do a ‘Manual’ import, check use material, reset scene, then, ‘import #noprompt’ will use the last settings.
- open MAXROOT\Plugcfg\obj2max.cfg, and edit the line: Materials=1
1 means to use .mtl, 0,… guess - use getINIsettings / setINIsettings to read/write to that file, before the impor stuff in your script