ImportOGR|D:\AeroflySDK\OSM\oberpfalz-latest.osm.pbf|11.601563;12.172852;49.184961;48.840814|highway;landuse;building|NOREPROJ
ImportOGR|D:\AeroflySDK\OSM\Excludes\ExcludeAll.kml|*|*|NOREPROJ
AddAttributeIfInside|building="*"|FROMFILE="ExcludeAll.kml"|String;skip|yes
AddAttributeIfInside|point="light"|FROMFILE="ExcludeAll.kml"|String;skip|yes
AddAttributeIfInside|FTYPE="POINT" And landuse="forest"|FROMFILE="ExcludeAll.kml"|String;skip|yes
UnloadFeatures|skip="yes"
PlacePointsAlongLine|highway="motorway"|SINGLE|45;55|6;6|25|String;point|plight|hdg
PlacePointsAlongLine|highway="primary"|SINGLE|45;55|6;6|25|String;point|plight|hdg
PlacePointsAlongLine|highway="secondary"|SINGLE|40;40|4;4|20|String;point|slight|hdg
PlacePointsAlongLine|highway="tertiary"|SINGLE|30;35|4;4|10|String;point|tlight|hdg
PlacePointsAlongLine|highway="residential"|SINGLE|30;30|4;4|10|String;point|rlight|hdg
PlacePointsAlongLine|highway="living_street"|SINGLE|30;30|4;4|10|String;point|rlight|hdg
PlacePointsInPolygon|landuse="forest"|0.00025;0.00025|1.0;1.0
CreateAF2Plant|landuse="forest" And FRAND >= 0.5|8;25|broadleaf
CreateAF2Plant|landuse="forest" And FRAND < 0.5|10;20|conifer
CreateAF2Light|point="plight"|0.9;0.8;0.7|5|0;0;1|10
CreateAF2Light|point="slight"|0.9;0.7;0.5|3|0;0;1|8
CreateAF2Light|point="tlight"|0.6;0.6;0.7|3|0;0;1|6
CreateAF2Light|point="rlight"|0.9;0.6;0.3|3|0;0;1|6
CreateAF2Building|building="*" And FAREARAT>0.7 And FLENGTH < 14|1|gable|residential
CreateAF2Building|building="*" And FAREARAT>0.7 And FLENGTH >= 14 And FLENGTH < 28|2|gable|residential
CreateAF2Building|building="*" And FAREARAT>0.7 And FLENGTH >= 28|3|flat|industrial
ExportTOC|D:\AeroflySDK\scenprocsources\TOC|cultivation_oberpfalz_cell_1x1
This is a kind of working script. You need to modify the red parts.