Better just calling straight up mel commands from the c++ Api. Maya 
converts these wrapped python commands back to mel anyway.

example:

MGlobal::executeCommand( "polyCube -sx 10 -sy 15 -sz 5 -h 20;" );


On Monday, November 24, 2014 5:05:40 AM UTC+1, max1 wrote:
>
> hello...can C++ call python scripts(or... commands python)?
> example...i have this (short) Commands python:
> #,,,,example:
> import maya.cmds as mc
> mc.polyCube() 
>
> can C++ call my commands python?how????
>
>
>

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/f98e4656-2a86-42bc-80c3-fab68514f89b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to