I want to create an archive for each .max. I want to validate the dialog box automatically when I save.
I found "UIAccessor.PressDefaultButton ()" but I can not use it because my "max file archive" is pausing.
How to solve the problem? Sorry I'm starting =)
Thx
clearlistener()
thePath = getSavePath()--get a path dialog to specify the path
if thePath != undefined do--if the user did not cancel
(
theFiles = getFiles (thePath+"\\*.max") --collect all max files in the dir.
for f in theFiles do-- go through all of them
(
loadMaxFile f--load the next file
-----------------------------------------------------------
-- MAKE SOME SCRIPTED CHANGES TO THE SCENE HERE...
-----------------------------------------------------------
max file archive
UIAccessor.PressDefaultButton ()
-- actionMan.executeAction 0 "40085" -- File: Archive
-- saveMaxFile f --save the file back to disk
)--end f loop
resetMaxFile #noPrompt --at the end, you can reset
)--end if
By JeremyA · 2018-04-18
Swordslayer · 2018-04-18