Page 1 of 1

FS19 Giants Editor Print Ground Texture Layer List

Posted: 2023-03-15 06:28:47
by Snake Man
FS19 Giants Editor Print Ground Texture Layer List

fs19 giants editor terrain layers, meaning detail ground textures.

Lua script to print texture layers into GE log file.

Code: Select all

-- Author:Stegei
-- Name:TerrainLayers
-- Description: Prints list of terrain texture layers for Paint Terrain by spline
-- Icon:
-- Hide: no

local worldRoot = getRootNode()
local file = getSceneFilename()
print(string.format("%s",file))
local map = getChildAt(worldRoot,0)
local mTerrainID = getChild(map, "terrain")
local numLayers = getTerrainNumOfLayers(mTerrainID)
for i =0,numLayers-1 do
textureName = getTerrainLayerName(mTerrainID, i)
print(string.format("Texture No :%d:Texture Name : %s", i, textureName))
end
print("\nOpen Spline Utils Paint Script to continue")

tags: farming simulator, fs19, editing, script, fs19 scripting, modding, mapping (haha), mod map, lua, hmm what else.