that output is caused by the mel script renderCreateNode. there's probably some evalEcho's in there.

try this:
renderCreateNode("-asShader","surfaceShader", "surfaceShader", "", 0,0,0,1,0,"" )

-chad


On Mar 23, 2010, at 9:47 AM, Chris G wrote:

Is there a way to suppress the mel code which is echoed to the history
pane for something like:
from pymel.core import *
shader, shaderSG=createSurfaceShader('surfaceShader')

Which results in:
shadingNode -asShader surfaceShader;
// Result: surfaceShader9077 //
sets -renderable true -noSurfaceShader true -empty -name
surfaceShader9077SG;
// Result: surfaceShader9077SG //
connectAttr -f surfaceShader9077.outColor
surfaceShader9077SG.surfaceShader;
// Result: Connected surfaceShader9077.outColor to
surfaceShader9077SG.surfaceShader. //

Thanks

--
http://groups.google.com/group/python_inside_maya

To unsubscribe from this group, send email to python_inside_maya +unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

--
http://groups.google.com/group/python_inside_maya

To unsubscribe from this group, send email to 
python_inside_maya+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to