tyFlow Forum
Scripted access to event count - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html)
+--- Thread: Scripted access to event count (/thread-2763.html)



Scripted access to event count - s_goemon555 - 11-21-2021

Hi,I'm trying to access the total count of events by maxscript listener.
Do you have any methods or tips?

Thank you.


RE: Scripted access to event count - tyFlow - 11-21-2021

You can iterate subanims of a tyFlow and see how many are of type 'tyEvent'. Ex:

Code:
eventCount = 0
for j in 1 to $.baseobject.numsubs do
(
    if iskindof (getsubanim $.baseobject j) tyEvent then (eventCount += 1)
)
print eventCount