# Warning: Calling script creator function failed #

# Warning: Calling script creator function failed #

yesthatjohn
Contributor Contributor
461 Views
0 Replies
Message 1 of 1

# Warning: Calling script creator function failed #

yesthatjohn
Contributor
Contributor

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

0 Likes
462 Views
0 Replies
Replies (0)