XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Simple MEL Syntax Question

08-24-2008, 04:25 AM
Am trying to setup a string for an attribute but I have syntax woes due to the double ". How do I get around this?

setAttr -type "string" finalRenderPass.postWorldMEL "system("shell renderdl -p 2 -P 2 -beep *.rib");";

Thanks a bunch.

08-24-2008, 04:58 PM
Hey there,

You gotta add in "\" before the quotes inside the quotes of the string to tell maya that they will be included within that string literally.

setAttr -type "string" finalRenderPass.postWorldMEL "system(\"shell renderdl -p 2 -P 2 -beep *.rib\");";

CGTalk Moderation
08-24-2008, 04:58 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.