I'm looking in to a recursive .numSubs function like they use in the help file but I'm not sure how best to search for cases where the object may have custom attributes like $.modifiers.custAttributes.numSubs, or when the baseObject has undefined Sub-Anims. I can't think of a clean way to search for all the sub-anims.
/* modified from the help file*/ float_props = #() fn getFloatProps theObject = ( if try(isKindOf theObject.controller FloatController)catch(false) do append animated_props theObject for i = 1 to theObject.numSubs do getFloatProps theObject[i] ) getFloatProps $
So the above function works but doesn't "see" any undefined floats such as bend.angle or box.length, and it also doesn't look deep enough in to an Attribute_Holder for custom attributes, etc.
What would be a good way to do this?