>
> As an aside:  While you can open a socket with both mel and Python...
> I've found that no matter what I do, if I open a socket with Python,
> the above solution won't work.. I have to open it with mel.
> Frustrating.
>
>

Well, at least on the mac I can state that this doesn't happen. We open
sockets (port >1024) from Python all the time and they work like sockets.
Are you sure you are getting the threadding right for executing the incoming
python ? It seems to me that you have to use executeInMainThreadWithResult()
[1] in order to have a socket server actually run code that it recieves.

Marc

[1]
http://download.autodesk.com/us/maya/2009help/index.html?url=Python_Python_and_threading.htm,topicNumber=d0e178412


> On Feb 1, 6:27 am, Jo Jürgens <[email protected]> wrote:
> > MayaPad does just that. Its a wxPython Python editor that can send
> commands
> > to Maya. Maybe you can copy the way its done there
> >
> > http://code.google.com/p/mayapad/
> >
> > On Mon, Feb 1, 2010 at 9:05 AM, Shaun Friedberg <[email protected]
> >wrote:
> >
> > >  Right, perhaps I miss-spoke…
> >
> > > I use Python to open a socket and then send Mel code.
> >
> > > My question is does anyone know how to send Python code instead of Mel…
> >
>
> --
>  http://groups.google.com/group/python_inside_maya
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to