Maya expression : Get return value from python procedure

Hello,

this code works fine :

python

def def_test():
    print "hello"

expression

python "def_test()";

But I cannot return a value from python to expression :

python

def def_test():
    return 1.33

expression

float $val = python "def_test()";

Do you have any ideas ?
Thanks, Arthur

You forgot the little single backwards quotes:

float $val = python "def_test()";

http://download.autodesk.com/us/maya/2010help/index.html?url=Using_Python_in_Maya_Communicating_between_Python_and_MEL.htm,topicNumber=d0e42436

Thanks a lot
it was that easy :nod: