Get the selected (or all) terrain(s) [Solved]

Hi

I would like to make my splat map export script a bit automatic so I won’t
need to select all alphamaps one by one and export them but instead select
the terrain and export its maps, or better, export all terrains in one go.

So I rebuilt my script to use the activeTerrain, which I thought was the
Selected terrain but it seems it is the “main” terrain which is always the same.

So my question is, how do I get the ‘Selected’ terrain from inside a script?

Or better, how do I get All the terrains from inside the script?

Thanks!

Valmond

Hello! :),

If you have solved it, it would be awesome if you let the people know how you solved it, so when people get this problem, there is a post that explains how to solve it :wink:

cheers!