Message 1 of 1
# Warning: Calling script creator function failed #
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I run the initializePlugin function I wrote, for the plugin I just wrote in python, I get this warning:
# Warning: Calling script creator function failed #
I saw a note somewhere on the web about this being caused by a bug in long flags not being long enough, but I don't know which flags that could be in my case. Is this related to the API version? I am using API version 1.0.
Here is my initializePlugin function:
def initializePlugin(obj):
plugin = ompx.MFnPlugin(obj)
def creator():
return ompx.MFnPlugin(PerforceWarnings())
try:
plugin.registerCommand(PerforceWarnings.NAME, creator)
except:
sys.stderr.write("Failed to register command: %s\n" % P4_Status_Checker.NAME)
raise