Text object removes ALL quotation marks help needed


    Sep 13 2017 | 5:18 pm
    Hi everyone, I've been trying to get a shader stitcher working in Max for a few days now. No joy. Its basically a few files that all get added together into one long text file. 01-XML-Header 02-GLSL-Library 03-GLSL-Engine 04-XML-Footer I solved a huge amount of problems and almost have the patch working, I sadly came to the conclusion late last night that the text object removes ALL quotation marks from ANY message that comes in. This pretty much blew my mind, I then figured out what those quotation marks are for and became a pretty sad panda. So to explain XML needs to do have text with symbols like "average" and keep the quotation marks. I truly hope someone can help me with this (please don't ask me to make it Javascript, I'm prepared to work hard but I'm a jitter fragment shader guy through and through and find the Javascript support in Max terrible and can't justify how long it would take me for to get it working for what I need). I've included a patch with a few simple test cases showing what I'm stuck with. And yes if this works I'll be releasing it as a public patch. It would allow a user to break any GLSL script up into as many parts as they want, point Max to a folder, boom new file made, change a single script out of the folder and the whole thing gets instantly recompiled. This is me battling how old Max is and its weird way of working. I get it, love it and hate it. Considering GLSL uses pretty much " " and float Not being able to use those symbols is a major major pain in the ****. Last but not least and yes this is a feature request.... Can we please just have something in max that allows us GLSL guys to just use text with any formatting and ALL words and symbols intact ? Putting a few text files together is only this hard in Max and not in any other software. Like with the text object an option like : text @keepFormatting 1 Just take what comes in and don't alter it. Thanks for your time.

    • Sep 13 2017 | 6:10 pm
      Did you try \"
    • Sep 13 2017 | 6:53 pm
      Hi Rick, that'll do the trick for now (i just didn't try altering the source material as I wanted it to just work with any input). I did try and put a backslash before the quotation marks with sprintf but didn't pull it off due to the way max works. I'd rather have it work in my patch without having to alter input material so its clear to other people. Either way. Thanks !
    • Sep 13 2017 | 7:28 pm
      To use it with sprintf you have to format it this way \\\"
    • Sep 13 2017 | 9:55 pm
      Thanks a million Rick, I'll see if I can get this to work in my patch.
    • Sep 14 2017 | 6:17 pm
      Here's something that might help