Drag and Drop Maxscript into SME on fresh launch throws an error?

Drag and Drop Maxscript into SME on fresh launch throws an error?

KasperFilipsen
Enthusiast Enthusiast
87 Views
1 Reply
Message 1 of 2

Drag and Drop Maxscript into SME on fresh launch throws an error?

KasperFilipsen
Enthusiast
Enthusiast

The Slate Material editor supports .ms files to be drag and dropped into the view.

But if I launch a new instance of max and open the SME as the first action and drag and drop a script into the active view, it throws an error in the Rendering > Render Message Window > Production

Could not read/write file type: C:\Users\kfi\Downloads\TestScript.ms

And the script can be anything. The above script just has messagebox "hello" inside of it

 

But if I do anything in the viewport, select or create an object and then try to drag and drop again, now it works from this point forward in this max instance.

 

Drag and dropping into the viewport as the first action also makes it work from that point forward.

 

Does anyone know how to resolve this issue?

Is there some code I can run to force an update in the viewport on launch that would allow it to work?

0 Likes
Accepted solutions (1)
88 Views
1 Reply
  • SME
Reply (1)
Message 2 of 2

KasperFilipsen
Enthusiast
Enthusiast
Accepted solution

Okay, apparently this is a user error. We've replaced the SME.fileDropCallback function, and something we did in the script made the error occur.

0 Likes