EventInfo
 
 
 

EventInfo

Object Hierarchy | Related C++ Class: EventInfo

Inheritance

SIObject

EventInfo

Introduced

v2.0

Description

EventInfo holds read-only information on a particular event such the name, type, event handler name, etc., this information can be accessed through the EventInfo properties. EventInfo objects are created with XSIApplication.EventInfos.

Methods

IsClassOf operator IsEqualTo operator    
       

Properties

Application Attributes Categories CustomData
FileName FullName operator Handler Help
Language Mute Name operator NestedObjects
Origin OriginPath Parent Type operator

Examples

VBScript Example

on error resume next
Application.Advise "OnBeginSceneSave","C:\MyEventHandler.vbs",,,"ABCSaveSceneEvent"
set info = Application.EventInfos("ABCSaveSceneEvent")
LogMessage "Type: " & info.Type
LogMessage "Name: " & info.name
LogMessage "Token: " & info.Token
LogMessage "Handler: " & info.Handler
LogMessage "Filename: " & info.Filename
LogMessage "Language: " & info.Language
if IsArray(info.Attributes) then
        arr = info.Attributes
        for i=0 to ubound(arr,1)
                LogMessage "Attributes " & i & ":" & arr(i)
        next
else
        LogMessage "Attributes: " & info.Attributes
end if
if IsArray(info.CustomData) then
        arr = info.CustomData
        for i=0 to ubound(arr,1)
                LogMessage "CustomData " & i & ":" & arr(i)
        next
else
        LogMessage "CustomData: " & info.CustomData
end if