I’m trying to rename my files bitmaps through a script.
I got it for the BitmapTexture class but the same code for the CoronaBitmap class gives an error.
the objective is to change the name of the bitmap to the name of the folder removing the slashes “” and leaving the same extension
tBitmaps = getClassInstances CoronaBitmap
for t in tBitmaps do
(if (isProperty t #filename) then
if (getFilenamePath t.filename) != “” then
(t.filename = (getFilenamePath t.filename) + substituteString (getFilenamePath t.filename) “\” “” + (getFilenameType t.filename)))
the error that appears is: 110 CustomScripts-- Unable to convert: undefined to type: FileName
can anyone help me on this issue? because it works for bitmaptexture, just not for coronabitmap