I have a folder with non-sequentially numbered files, for example:
Filename_1.exr
Filename_10.exr
Filename_126.exr
Filename_8694.exr
Filename_90223.exr
I need to strip "Filename_" and convert the remaining numbers from string to int.
I can achieve this in a vex wrangle using this simple code:
s@filename = @sourcefilename[9:];
i@filenumber = atoi(@filename);
In TOPS I cannot find a way to achieve this... I tried to do it in Attribute Create using this in the integer attribute field:
atoi(@filename[9:])
Any advice as to how this issue can be resolved or approached in a different way is much appreciated