Challenge: I would like to write some small scripts on any languages to place multiple objects in regular patterns (solar panels in grids, ruwas markers in lines etc.). I would create part of a scenery configuration file (supposedly XML) by this script. I have done this earlier with scenery elements (solar panels), but now I would like to place texture polygons with this method.
Question: Where does the editor store the polygon information for a scenery?
Background:
I am correcting an existing airport using basic things. I added a polygone to exclude vegetation. It asked for file name and generated the four related (shape) files within the PackageSources/scenery folder where my main scenery xml resides also.
1st strange thing is that I can not see any reference for this vegetation exclusion poly in the main scenery xml file and any coordinates in readable format. Strange, but I can imagine that the builder will find the nexessary info from the 4 shape files.
Then I added several other polygons with textures (not exclusion). The editor did not ask for any file name and I don’t know where the info about those polygons are stored. They do build correctly and visible in the scenery when running the sim. However I can’t see any info about these (in fact any) polygons in the file system. All other elements (including rectangles) can be found with position, name etc in the scenery xml file.
I also can’t rename these polygons in the Scenery Editor. Or in fact I can rename them, but it is not saving these infos. After save and reload, the default names appear: “Polygon (texture)”. For other elements in the Editor I can save the names.
As I can’t find the configuration of any of the polygons in text based config files (or in fact anywhere), I can not write an automation code to place repeated polygon elements into the scenery.