Go to: Return value. Related commands. Examples.
evalEcho arg1 [arg2 ... [argn]];
$someProcName = "cone"; $radius = 3; evalEcho ($someProcName + " -r " + $radius); cone -r 5; // Result: nurbsCone1 makeNurbCone1 // // Commands added to the shelf that echo output don't have their output // show up once Maya has been restarted. To get around this, surround // the command with an evalEcho using the Shelf Editor. evalEcho ("polyEvaluate");