Notifications
Clear all

[Closed] string mysticism

why does this happen / how can I fix this in maxscript?

code:

pathendstring = "\3d_table	able_brio.max"

output in MaxScript Listener
“\3d_table able_brio.max”

that means my variable “pathendstring” has a wrong content I can not work with

4 Replies

In a string ” ” represent a tab you have to double slash like that”\ “

pathendstring = "\\3d_table\	able_brio.max"

search for special characters

or use @


pathendstring = @"\3d_table	able_brio.max"

” ” as a char means tabulation. see the mxs help for details (String Literals)[font=Verdana][/font]

you can also do this –

pathendstring = @"\3d_table	able_brio.max"

see Verbatim String Literals in the help

Verbatim string literals added to MAXScript in 3ds Max 2008 are prefixed by the ‘@’ character and are NOT expanded even if containing backslash escape character sequences like ’ ‘, ’
’ or ‘\r’.