Hi guys,

I'm trying to implement a user callback mechanism;
I'm having a function in a predefined module called glm.utils :

def createNodeUserCallback(functionName, nodeName):
    callbackFunction = functionName + 'UserCallback'
    call = callbackFunction + '(\'' + nodeName + '\')'
    try:
        eval(call)
    except:
        mutils.warning('Error while calling Python user callback')

This function is called here and there with different parameters and
expects our users to declare and source some functions
Those functions are sometimes declared in their own modules (not known from
our side) or in the Maya Script Editor

Problem is those functions are not available from our glm.utils module.
Someone has an idea about how I could solve this ?

Thanks

---
[image: Nicolas Chaverou - Golaem Crowd Product Manager - Golaem SA]

+33 (0)2 99 27 21 44
http://www.golaem.com

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFS5DCarx4ENBitQT8G-_dcqpSDuVtSdmW5Q0rpAy76naVN%2BnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to