exec() doesn't return anything. Do you need to set state on variables in the maya python interpreter, or just create a sphere? If you aren't interacting with code objects in the interpreter then you can just send:
mc.sphere() Otherwise I think you have to do some extra work to save the stdout and read it back, when wrapping it in the exec. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
