import maya.OpenMaya as om
import maya.cmds as mc

def function(retCode):
    import maya.OpenMaya as om
    #retCode = None
    om.MScriptUtil.setBool(retCode, True)
    return retCode

#om.MMessage.MCheckFileFunction()
om.MSceneMessage.addCheckCallback(om.MSceneMessage.kBeforeSaveCheck,function)

yup I ve used the other Callbaxck methods but this return True / False
is dribing me crazy. This will just cause it to stop you from saving.
Really need to be able to be able to enable or disable the action. Am
I setting the retCode wrong ?

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to