hey guys, i'm trying to import a batch of obj files from a directory without having the script show any dialogs but for some reason it always shows the import dialog on the first import i want to do. The following objs import without showing any dialog. Here is the code ( theFiles = getFiles "C:\\path\\*.*" for i = 1 to…
I haven't done much with dotnet stuff, but would a while loop work instead of using the dotnet timer callback? Seems a bit hacky, but then again, to me, maxscript is hacky. :P
I found a crappy workaround for this problem So what i'm doing now is running a vbs script that focuses my screen and sends a space command. Maxscript ( vbran = false fn confirmObjImport = ( local HWND = dialogMonitorOps.getWindowHandle() if ((uiAccessor.getWindowText HWND) == "OBJ Import Options" ) do ( print "Import…
oh yeah tnx, i didn't really think of that option, such a shame maxscript is so buggy second problem is that the import dialog has a loadingbar, so i thought i'd add a timer that would set a bool to true after 2 seconds but this doesn't seem to work and yet again i can't really see why not ( local PressImport = false local…
Max can be a bit retarded about showing dialogs, but you can get rid of the dialog with a bit of DialogMonitorOps hackery. DialogMonitorOps.RegisterNotification confirmObjImport id:#pressObjOKyourfunction hereDialogMonitorOps.unRegisterNotification id:#pressObjOK function confirmObjImport = ( local hwnd =…