Notifications
Clear all
[Closed] string mysticism
Sep 01, 2013 1:00 pm
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
Sep 01, 2013 1:00 pm
In a string ” ” represent a tab you have to double slash like that”\ “
pathendstring = "\\3d_table\ able_brio.max"
search for special characters
Sep 01, 2013 2:00 pm
” ” as a char means tabulation. see the mxs help for details (String Literals)[font=Verdana][/font]
Sep 01, 2013 2:00 pm
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’.