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