Notifications
Clear all

[Closed] testing multiple export settings

hi …

i am totally new to maxScript, but i do have some experience with scripting.

i need to create a script which exports a series of meshes from max. the meshes all are called “Part_1”, “Part_2”, … until “Part_9”.

they all have to be exported to a certain path, in .obj format. the series is simply going through a selection of export settings and writing out those meshes with alternating export settings.

could anyone be so kind and give me a start on how to write such a script in maxScript?

thanks in advance !

5 Replies

hey! I’m not an expert, and I may be wrong. But I think that you can’t set different export settings through maxscript for versions bellow 2010.

Versions up to 2010 will use the last used export settings. In 3dsMax 2010 however you have access to the dialog through maxscript, so you can set different export settings for every export in your script.
Actually the settings are saved in a ini file, so you would change the settings like this:


  theINI = objImp.getIniName()
   setIniSetting theINI "General" "UseLogging" "0"
  setIniSetting theINI "General" "Preset" ""
  setIniSetting theINI "General" "ResetScene" "0"
  setIniSetting theINI "General" "UseLogging" "0"
  setIniSetting theINI "Objects" "SingleMesh" "1"

Also check this out for a possible workaround for versions bellow 2010:

http://forums.cgsociety.org/showthread.php?t=689110

hi Norman !

thanks for your input !

i couldn’t open “theINI” to write the new values…

btw. you wrote:
theINI = objImp.getIniName()

why imp, not exp

nevertheless i get this error:
– Unknown property: “getIniName” in ObjImp

what could i be doing wrong ?

1 Reply
(@norman3d)
Joined: 1 year ago

Posts: 0

D’oh! My fault, that’s the import dialog.

This is an example for the export dialog:

theINI = objExp.getIniName()
 setIniSetting theINI "General" "UseLogging" "0"
 setIniSetting theINI "General" "Preset" ""

you say you’re working on 2k10 ?

because i’m on 2k09 … i guess this is why i get the error …

the stuff in the other thread is too advanced atm… no time for such complicated scripting …

i’ll have to stick to the manual clicky-clicky … well…

but thanks so far … !

yep only 2010. Same happens to me, the other stuff is way too advanced hehe