What do you expect? As I read your formatting specification you request a string with 3 symbols preceding with zeros, and it should use shortest representation either scientific or full floating - so for 25 works well.
So, the problem is that the C3D filename is requested at the moment when everything else has not been read yet (it is a very special object that is used to configure many other objects). These expressions are being evaluated a little later. And there is no trivial work around.
Do you run these simulations from Matlab/Python? If so - possibly it would be easiest to pass the name of C3D file as a define from outside. This way it will definitely be ready for the loading time (which happens first thing, I believe). This is how we do it, and I am suggesting because this is probably easier to implement than something else.
You could also look how we recommend to do batch processing here.
Kind regards,
P.
[ol]
[li]Run it from AnyBody and select a subject[/li][li]Run it as batch from Matlab[/li][/ol]
Of course I could create a subject-specific ANY-file using Matlab, and run it in batch mode.
But in general it should be possible to use the strval function during the loading process.