PDA

View Full Version : Quotes inside quotes?


Danmoreno
06-14-2006, 05:35 PM
hey guys is there a way to put quotes inside quotes?? cause i need to make shelf button that will source the selected mel script, and the source command uses "filename.mel"

string $source = "source " + $filename[$number];

any clues?

thanks!

animationrigs
06-14-2006, 05:38 PM
You need to use the "escape character" sooooo...

$cmd="source \"c:/temp/myscript.mel\"';

it's the \ before the character. just like with the new line \n

Danmoreno
06-14-2006, 06:38 PM
thanks it worked!

CGTalk Moderation
06-14-2006, 06:38 PM
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.