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

Thank you.
  Reply
#2
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
  Reply


Forum Jump: