I don't know what this means. What do you mean by "printing this out in note pad" and "not working" and "other commands like \t"?
Please be very specific about what exactly you are trying to do, what you expect, and what exactly the results were. On Thu, 4 Jun 2015 3:30 PM Sumant Shenoy <[email protected]> wrote: > ok i am trying to print this out in note pad line by line but but for some > reason "\n"is not working am i doing some thing wrong because all the other > commands like "\t" are working > > import maya.cmds as cmds > path=cmds.internalVar(upd=True)+"preset.txt" > file=open(path,'w') > file.write("i am line 1"+"\n") > file.write("i am line 2") > file.close() > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAGhqNnn75f%3DBRq6aQV34fZWE0MCraOxHrXWYxFwjSVqOnXZ%2BjA%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAGhqNnn75f%3DBRq6aQV34fZWE0MCraOxHrXWYxFwjSVqOnXZ%2BjA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3Auaciu%3DppT0JS%3DBShTbMvejtVHsJBrHiQoYJ0OHQcAQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
