here is a toMaya script for Eclipse...
http://3desque.wordpress.com/2011/03/20/tomaya/
works for me
john
张宇 wrote:
my eclipse works well. I'm using the Version: 3.7.0. I just know a
little about how to send the commands to your maya, it's sample, here
is the code
import socket
port = 2224
sendST = 'import maya.cmds as mc;mc.polySphere()'
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('127.0.0.1', port))
sock.settimeout(5)
sock.send(sendST)
and you also should to open the socket for python in your maya.
import maya.cmds as mc
if mc.commandPort('localhost:2224', q = True) == 0:
mc.commandPort(name = 'localhost:7555', stp = 'python')
Base on this code, you can send the command to your maya, you can have
a try!
2011/7/10 Emre Yilmaz <[email protected] <mailto:[email protected]>>
Since we're on the topic, I just started using Eclipse with Maya and
ran into two confusions.
1) Sending cmds to Maya directly from Eclipse? There was a plugin on
Creative Crash from Ron Bublitz to do this, but it didn't seem to work
for me (due I think to my too-new Eclipse version.) Is there another
way?
2) How thorough is the autocompletion supposed to be? I get cmd names
but no arglists showing up. Does it just do cmd names or should I be
getting arglists?
Thanks!
On 7/9/11, Sebastian Schoellhammer <[email protected]
<mailto:[email protected]>> wrote:
> I'm using Wing at home and we have Eclipse / Pydev at work
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe
--
thatboy.me <http://thatboy.me>
www.any-maker.com <http://www.any-maker.com>
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe