Notifications
Clear all
[Closed] Help replace the name of folder in the array
Oct 10, 2011 12:50 am
this is script I got, but seems cant work, I need to replace all the folder name in the array with selected folder I choose (if posible sub folder too)
(
map_list=#()
for m in getClassInstances BitmapTexture do --(if (findItem map_list mapfileN) == 0 do (append map_list m.filename))
(
local mapfileN = m.filename as string
if (mapfileN != "undefined") do
(
local index = findItem map_list mapfileN
if index == 0 do append map_list mapfileN
print index
)
)
sort map_list
)
new_path="H:\New Folder" --folder I choose
for m in getClassInstances BitmapTexture do
(
for i in (map_list as array) do
(
if m.filename == map_list do ( m.fileName=(new_path) + (filenameFromPath m.fileName))
)
)
:banghead: :banghead:
thanks
best regard
fajar