Iterating through events can be done with subanim methods:
Code:
obj = $tyFlow001.baseobject
names = getsubanimnames obj
for name in names do
(
anim = getsubanim obj name
if (iskindof anim tyEvent) then --check if subanim is 'tyEvent' class member
(
print (anim.name) --it is, so print it's name. We can then either access by name, or directly through the subanim
)
)