1. make models... Setting hierarchy... Create dummy and name it as you will name dff...
Dummy must exist in top of hierarchy. (pic 1)
2. Select all objects with dummy and export to dff
3. Animating objects.
4. Run script, select only dummy and click "get hierarchy selected".
There will be all children objects in list...
If object haven't animation, set flag EXCLUDE (red) (pic 2)
If object is revolved only (without movement), set to it flag SKIP POS. (pic 3)
At pictures: red - without animation, blue - revolves around its axes,
green - moving up/down (need uncheck flag SKIP POS), yellow - rotating...
5. It's all, click export, if you need to create animation file. Or APPEND to add into animations.
6. Write object in IDE in section ANIM/END like this:
ID, model_name , TXD_name , ANIMATION , FAR , FLAGS
Rest of it like in standard map objects - COL, TXD, IPL