• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v5 HeadingFromNearestLine - no hdg rotation

Messages
1,637
Country
unitedstates
I am trying to get my transmission towers to rotate via the heading of the nearest line which is in this test using a road. A basic test but I cannot see even the slightest rotation.

Here's the script:

ImportOGR|B:\CA Data\OSM Data 2023\CA_63_BX46_towers.shp|*|*|NOREPROJ
ImportOGR|B:\CA\Section_63\Roads\CA_BX46_second.shp|*|*|NOREPROJ

PointToPolygon|power="tower"|10;10|HDG|0|String;objType|power_tower
HeadingFromNearestLine|objType="power_tower"|fclass="secondary"|HDG

CreateAGNLibObject|objType="power_tower"|{04b3be62-557e-4f7a-9140-9fae690526eb}
ExportAGN|P3D v4|B:\CA\Section_63\CA_BX46\Test Objects Towers\texture

Each steps appears to be working correctly, looking at the script results, especially at the HeadingFromNearestLine step. Here's a screening of scenProc's results:

HeadingFromNearestLine test.jpg


Yet, not a single tower rotates even a little. They are all facing true north (0 degrees), I believe. Shouldn't I see something? Thx.
 
Last edited:
Just an update... I found one other thread on this subject. So I tried adding the FTYPE="LINE" as so;

HeadingFromNearestLine|objType="power_tower"|FTYPE="LINE" AND fclass="motorway"|HDG

I also moved the SplitGrid|LOD13|* after the HeadingFromNearestLine but no change as was in the post. I also tried a different road, a motorway, which is more "curvy" so I think I would have seen a lot of different rotations but still nada. If I manually change the heading say to 90 degrees I do see all the towers change as just a test to make sure they can rotate.
 
Hi,

I always use that step on the point features. If you use it on the polygon features it will not rotate the polygon itself, just add an attribute.
 
Ah,... that worked. ;)

on a semi-related question... have you ever been able to delete an object found in the P3D/Scenery/Global/scenery folder? In particular, I have been trying to delete the default transmission towers. Tried mask polygons, exclude polygons of different objects all the way to "ALL" have not worked. Placing the polys either in my custom scenery folder or in the Global/scenery folder... no go. The only way I have found is to delete that object found in the hazards.bgl which I would prefer not to do. Interestingly, if I just have my photoreal scenery in game, just the scenery folder, the default towers do not appear. But the minute I add a texture folder they appear over my photoreal scenery. Not sure why that happens... one of the great mysteries of P3D I guess. o_O
 
Last edited:
Are they not terrain vectors of the type utility? Did you try an terrain vector exclude for them?
 
To be honest, I have not heard of the term terrain vector exclude. I'll need to look that up... thx for the lead on this.
 
Back
Top