Shouldn't your event be returning 'true' instead of 'false'?

Matt




-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Eric Thivierge
Sent: Monday, July 14, 2014 10:46 AM
To: [email protected]
Subject: Timer events broken 2013>?

Anyone notice that TImer events are broken from 2013 on?

Using this in a python plugin to create it. Can anyone validate this for me? 
Tested in 2013, 2014, and 2015...

# NewEvent Plug-in
# Initial code generated by Softimage SDK Wizard # Executed Mon Jul 14 13:43:19 
EDT 2014 by ethivierge # # Tip: To add a command to this plug-in, right-click 
in the # script editor and choose Tools > Add Command.
import win32com.client
from win32com.client import constants

null = None
false = 0
true = 1

def XSILoadPlugin( in_reg ):
     in_reg.Author = "ethivierge"
     in_reg.Name = "NewEvent Plug-in"
     in_reg.Major = 1
     in_reg.Minor = 0

     in_reg.RegisterTimerEvent("Timer", 500)
     #RegistrationInsertionPoint - do not remove this line

     return true

def XSIUnloadPlugin( in_reg ):
     strPluginName = in_reg.Name
     Application.LogMessage(str(strPluginName) + str(" has been
unloaded."),constants.siVerbose)
     return true


# Callback for the Timer event.
def Timer_OnEvent( in_ctxt ):
     Application.LogMessage("Timer_OnEvent called", 8)

#     TODO: Put your code here.

#     This event can be aborted by returning true or false if you don't 
want to abort.
     return false




Reply via email to