sublime3dsmax icon indicating copy to clipboard operation
sublime3dsmax copied to clipboard

Path can't be Chinese

Open 4698to opened this issue 5 years ago • 3 comments

filein can't be Chinese .

Example : filein @"C:\Users\Administrator\例子栗子_auto.ms"

4698to avatar Jun 04 '19 10:06 4698to

@4698to As fileIn is a maxscript command, it seems to be a 3ds Max limitation? What version of 3ds Max have you been testing with?

cb109 avatar Aug 15 '19 06:08 cb109

@4698to As fileIn is a maxscript command, it seems to be a 3ds Max limitation? What version of 3ds Max have you been testing with?


i fix it .

def _send_cmd_to_max(cmd):

cmd = cmd.encode("utf-8")  # Needed for ST3! 
minimacrorecorder.send(winapi.WM_SETTEXT, 0, cmd.decode())
minimacrorecorder.send(winapi.WM_CHAR, winapi.VK_RETURN, 0)
minimacrorecorder = None

4698to avatar Apr 19 '20 04:04 4698to

@4698to I don't see how your original problem, calling fileIn on a filename that includes chinese characters, is fixed by disabling the UTF-8 encoding on the file content? So it probably has nothing to do with fileIn to begin with? Can you please confirm inside your 3ds Max that filein @"C:\Users\Administrator\例子栗子_auto.ms" works? Also please let me know which 3ds Max version you are using.

cb109 avatar Apr 20 '20 10:04 cb109