[MAXScript] Get Event by index or key
#2
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
    )
)
  Reply


Messages In This Thread
RE: [MAXScript] Get Event by index or key - by tyFlow - 06-14-2021, 04:27 PM

Forum Jump: