Get name from current CAT Animation Layer via MaxScript to parse it for exporting an animation
I try to parse the Name of my CAT Animation Layer to set the timeline and name for a fbx export to unity.
my CAT Layer name is: "0_24-Walk"
i want to set the timeline for export to the numbers and take "Walk" as part of the fbx filename.
with 'CATParent.SelectedLayer' I can get the number of the current selected CAT Animation Layer.. for example "2" if i have the second layer selected..
but I need the name of the layer to parse it..
the script help says something like:
The CAT Layer interface is an Interface: LayerInfoFPInterface
and this has a property .LayerName
I think that is what I need but I don't know how to use it..
how do I get the name of my current selected CAT Layer?
can anyone help me or did this before?
Thank you for the hints and help!