View Full Version : how can I print the question mark "

09 September 2004, 09:59 PM
here is my problem:

I want to make a string array variable who contain the name of the selected CV of my nurbsPlan.
so i use this:
string $sel[] = `ls -sl -flatten`;

I want to print the CV's name in the following way: "[0][0]",
In order to use it in a procedur

i can print this:[0][0],
but not this: "[0][0]",

so how can I print the quotation mark (") ? //I don't realy know the english word for the symbol "

naturally maya can't understand to print like this: """ + $sel + """ + ","

So is there a trick for print the " or it's simply impossible?:shrug:

09 September 2004, 10:49 PM
You need to escape them in order to print them as a regular character.

print(" \"[0][0]\";");

should print


09 September 2004, 06:48 AM
wow that's exaclty what I expected!!
thanks a lot :thumbsup:

however I can't find anything about this in the maya help.

CGTalk Moderation
01 January 2006, 05:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.