Patrick Beaulieu at CG Overdrive

I was at CG Overdrive in Singapore on 2nd day, and I knew I was there just to attend Patrick Beaulieu's presentation on Animation techniques,

and it went awesome, I can say that because after 1 hour at conference I was searching for a diary, and when I found it, I started making little basic animation, and then flipping them to show it to my friends,

Wow, after 2-3 years, I animated something(just for fun),

Patrick's amazing little animations are at


Its been long long time since I posted anything on my blog.

So here is a way to send data from Python to Maya and vice versa,


import socket
import re

port = 3033

maya_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
maya_socket.connect((socket.gethostname(), port))
maya_socket.send(r'print"\nConnected to Python ...\n";')

while 1:
    data = maya_socket.recv(4096)
    data = data.replace("\n","")
        print "Closing..."

print "Socket closed"


in Maya,

commandPort -eo -n ":3033";   to connect to python socket


print "Hi from Maya\n";   will print the string in command line, where python server is listening

and then finally, we are using this string "callPythonSocketServer" to tell python server to quit,

print "callPythonSocketServer";