· 8 years ago · Jun 06, 2018, 06:58 PM
1/*
2/ Script: Auto add texture folders to User Paths
3/ Author: Panteleev Sergey
4/ Year: 2018
5/ Contacts: fatbbc @ gmail.com
6*/
7(
8 existingMapPaths = for i=1 to mapPaths.count() collect toLower (mapPaths.get i)
9
10 for dir in getDirectories @"D:\projects\*" where doesFileExist (texturesDir = toLower (pathConfig.appendPath dir "textures")) do
11 (
12 if findItem existingMapPaths texturesDir < 1 do
13 (
14 mapPaths.add texturesDir
15 )
16
17 )
18)