Notifications
Clear all
[Closed] Control the obj export option
Page 2 / 2
Prev
Oct 26, 2008 9:08 pm
I find a trick for writing that cfg file use %temp% cmd
createFile "C:\\WINDOWS\\max2obj.cfg"
f = openFile "C:\\WINDOWS\\max2obj.cfg" mode:"w"
format "[Max2Obj]
GroupFrom=0
Materials=1
MtlCreate=1
Rotate=0
Texture=1
Normals=1
Smooth=1
Facetype=0
" to: f
format "Scale=1.000000
Digits=6
Compress=0
Relative=0
[Max2Mtl]
Source=0
Maps=1
Digits=1
Compress=0
" to: f
close f
f = openFile "C:\\xxxxxx\\runss.bat" mode:"w"
format "C:
cd \%temp\%
cd ..
cd \"Application Data\"
cd Autodesk
cd 3dsmax
cd \"9 - 32bit\"
cd enu
cd plugcfg
" to: f
format "copy \"C:\\WINDOWS\\max2obj.cfg\" max2obj.cfg /Y
" to: f
close f
DOSCommand "C:\\xxxxxx\\runss.bat"
Oct 26, 2008 9:08 pm
o_O
As I stated in my post, just use setIniSetting?
E.g.
setIniSetting "$plugcfg\\max2obj.cfg" "Max2Obj" "MtlCreate" "1"
Again, though, the above probably doesn’t apply to 3ds Max 2009 as I don’t see that generating a “max2obj.cfg”… so if you need the script usable by 3ds max 2009 users… %)
Oct 26, 2008 9:08 pm
Ah agrrr… lacking of knowledge is really a *crime *… :shrug:Look at my code how I deal with the cfg file…Your code is really Max way!
Btw, I only stuck with Max9 right now. Maybe in the future if client require of a newer version of Max I will need to update my tool if neccesarry… But I really hope not:hmm:
PS: just for fun, my total post is 808 and yours is 606 :applause:until this post
1 Reply
Page 2 / 2
Prev