hi dimitry, this is a common misconception. every instance of maya is unique, whether launched through a gui, in batch mode, or through python. if you open two maya gui's, creating a sphere in one (thankfully) does not create a sphere in the other. this is why tools like mapy were written, which use maya's command port to remotely control maya from a script editor. ron bublitz has written one for eclipse:
http://www.creativecrash.com/maya/downloads/applications/c/eclipse-maya-editor http://www.creativecrash.com/maya/tutorials/using-tools-scripts/c/using-eclipse-as-a-maya-ide unfortunately, there is no good way to create a real python interpreter from within maya -- all you get is the script editor, which is nice for some things, but most of the time i'd prefer a real python interpreter, like you can get from a shell. i've bugged autodesk about this, and even created a youtube video demonstrating ipymel (http://www.youtube.com/watch?v=EaIT8czZrlo), which closes by stating that we want this feature *inside* a gui session, not just from a shell. if you'd also like to see this feature, be sure to let them know. -chad On Sep 23, 2009, at 6:45 AM, Dimitry wrote: > > Hey Guys, > > my question related on earlier discussion about a control maya from > eclipse > > http://groups.google.com/group/python_inside_maya/browse_thread/thread/b357b790538d3ac1/99c9f10223d4f204?hl=en&lnk=gst&q=eclipse#99c9f10223d4f204 > > with the new pymel version 0.9.2 I followed tutorials how to add all > builtins and automaticly install pymel, and I think that it's works > (because such stuff like > ### > import maya.OpenMaya > vector1 = maya.OpenMaya.MVector(0,1,0) > vector2 = maya.OpenMaya.MVector(1,0,0) > vector3 = maya.OpenMaya.MVector(0,0,2) > newVector = vector1 + vector2 + vector3 > print "newVector %f, %f, %f " % (newVector.x, newVector.y, > newVector.z) > ### > works, I got "newVector 1.000000, 1.000000, 2.000000" in the console > bar) > > But I didn't got to draw any objects into maya interface, like: > > import pymel > pymel.sphere() > > my wish to get a sphere in opened maya window at 0,0,0 coordinate. > > Could somebody of you guru guys help me please? > > Thank you in advise! > Cheers, > Dimitry > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
