[Closed] how to access .obj import setting?
Does anyone have the idea that how can I access the setting for importing a .obj file? A window pops out everytime user imports an obj file, and all the options and setting done by user will be kept for next time. I’m wondering is there a seperate INI file or something stroed somewhere deep in max’s folders? I am writing a script of batch importing .obj files, thus I need to take control all the importing settings. Anyone has any clue about this? Thanks a lot for the help in advance!!
I know three ways, all of them fairly hacky IMHO:
-
You can restore a previously generated config file of the OBJ importer/exporter. It’s the file obj2max.cfg in the $plugcfg directory. So you’d first set the exporter to the options you need, then save the .cfg file somewhere else and restore it when needed.
-
You can edit that file directly, it’s ASCII; and you can use the getINISetting/setINISetting functions.
-
Since Max 9, there is a DialogMonitorOPS Interface that allows you to interact with arbitrary dialogs. You could use that to automagically set the right values in the dialog and click OK.
Good luck
– MartinB
all i could do when i was writing mine is to set the options manually !
test the import and export on a single obj … when i was sure that its ok
i let the script go !