|
I was wonderng if anyone can confirm whether or not FBApplication().OnFileMerge is actually triggering any callback requests.
I’ve been successful with a bunch of other callbacks, but OnFileMerge appears to not be getting triggered for me. Can someone else help me take a look at this?
This code for OnFileNew works. To test, load the code, then do a file, new. You get the debug printout like you’d expect
import pyfbsdk as fb
def newCallback( obj, evt ):
print "[newCallback] obj: %s, evt: %s" % (obj.Name, evt.Type)
app = fb.FBApplication()
eFileNew = app.OnFileNew
eFileNew.Add(newCallback)
This code for OnFileMerge does nothing, and is almost the exact same code you need to trigger it (unless I’m missing something here):
import pyfbsdk as fb
def mergeCallback( obj, evt ):
print "[mergeCallback] obj: %s, evt: %s" % (obj.Name, evt.Type)
app = fb.FBApplication()
eFileMerge = app.OnFileMerge
eFileMerge.Add(mergeCallback)
Is there something special about OnFileMerge that I need to do in order to properly trigger it? Doing a merge from the main file menu does nothing.
-csa
|