PDA

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


joss3D
09-07-2004, 10: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: "nurbsPlan.cv[0][0]",
In order to use it in a procedur

i can print this: nurbsPlan.cv[0][0],
but not this: "nurbsPlan.cv[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:

GDC
09-07-2004, 11:49 PM
You need to escape them in order to print them as a regular character.


print(" \"nurbsPlan.cv[0][0]\";");

should print
"nurbsPlan.cv[0][0]"


--g

joss3D
09-08-2004, 07: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-19-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.