So imagine I have an SU file that is structured with various groups containing components that contain more groups and components etc etc...fairly deeply nested.
I need to generate a report that MS Excel can read (e.g. .csv), containing the name and material of each and every group and component instance - 'flattened'. I also want to report the INHERITED material; so something like this:
Name Instance's Material Inherited Material
Model Default Default
ComponentParent Default Default
ComponentChild Red Red
ComponentChild Default Default
ComponentParent Yellow Yellow
ComponentChild Default Yellow
ComponentChild Default Yellow
ComponentParent Green Green
ComponentChild Red Red
ComponentChild Default Green
The order of the output doesn't matter, I'll be sorting and filtering etc later.
The ability to export a the definitions' attributes would be useful too.
The ability to do some regex-style filtering by component definition name would be incredible, but not essential (the only instances I actually need to export have definition names that begin with an underscore, but I can always filter that afterwards in Excel if necessary).
So far I have come across two options, neither of which quite do what I want:
The first is ComponentReporter++, which works fine apart from the fact that it doesn't give me the inherited material (it just gives me '<Default>' instead).
The second is AttrReporter, which gives a cleaner output than ComponentReporter++, and exports attributes, but doesn't show any material information at all, let alone inherited materials.
I would have a go at this myself, but I know absolutely nothing about Ruby and thus feel way out of my depth with something like this.
Does something like this exist already? Or would anyone be willing to have a crack at a new version of ComponentReporter or AttrReporter?
Thanks