convert: undefined to type: String PROBLEM [SOLVED]
OldString = "Arch137" as string -- Change to suit NewString = "AM137" as string -- Ditto theMaps = getClassInstances BitmapTexture for i in 1 to theMaps.count do ( fileName = theMaps[i].filename if matchPattern fileName pattern:"AM*" ignoreCase:false == false then ( newFilename = trimleft fileName OldString new2filename = NewString + newFilename theMaps[i].filename = new2Filename -- renames ) )
The above creates an error stated in the subject. I have tested this on 20+ scenes prior without any errors. I want to achieve is to replace 'string1' for 'string2' in the filename paths whilst not affecting the actual path.
As I've said it worked on 20 odd scenes prior.
Thanks for any help.