OK I'll take a look and see if there is something fishy in other
plugins here.
Thanks for the help Stephen! Still the best Softimage support tech
years after you left! :P
On Monday, July 14, 2014 1:59:46 PM, Stephen Blair wrote:
Nope, never noticed that, and SItoA has a timer event in it. We would
have noticed if it didn't work.
Your plugin works in Softimage 2015 on my machine.
ta
Steve
On Mon, Jul 14, 2014 at 1:45 PM, Eric Thivierge
<[email protected] <mailto:[email protected]>> wrote:
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