sublime3dsmax
sublime3dsmax copied to clipboard
Path can't be Chinese
filein can't be Chinese .
Example : filein @"C:\Users\Administrator\例子栗子_auto.ms"
@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?
@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 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.