# Excluding landscape spline wth static mesh from foliage generation

**URL:** <https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002>\
**Category:** World Creation\
**Tags:** unreal-engine, Landscape\
**Created:** [June 17, 2020, 5:27pm UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002 "2020-06-17T17:27:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_67ca133e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67ca133e](https://forums.unrealengine.com/u/anonymous_user_67ca133e)\
**Post date:** [June 17, 2020, 5:27pm UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002/1 "2020-06-17T17:27:21Z")

</div>

Currently you can specify a landscape layer to prevent a foliage spawner from spawning on it. However, I have a spline that has a static mesh (for a road) on it. As long as the mesh is on the spline, the foliage tool will ignore the layer filter and spawn on top.

Is there a way in 4.24 (or higher) to exclude such a spline ? The paint/fill tool does not help because the landscape splines do not seem to be visible in the editor placement mode (only in landscape “manage” mode)

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [June 18, 2020, 12:35am UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002/2 "2020-06-18T00:35:18Z")

</div>

No, but if you apply the correct layer to the spline and apply that to the landscape you would get the same result.  
just remember that its not easy to undo this. Paint on the landscape is permanent if you save and exit or run out of undo functions you would have to reverse it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_67ca133e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67ca133e](https://forums.unrealengine.com/u/anonymous_user_67ca133e)\
**Post date:** [June 19, 2020, 4:23pm UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002/3 "2020-06-19T16:23:09Z")

</div>

So: I am applying one of my landscape layers to the spline. It seems correctly applied because without the road spline I can see the difference in appearance. I can exclude the layer in the foliage spawner and it will not generate foliage on the spline.

However, when I add a static mesh to this same spline, the foliage will spawn on top of this static mesh.

Could you then please clarify what you mean by “apply the correct layer to the spline and apply that to the landscape” ? I think I am doing everything correctly, it just does not work.

thanks!

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [June 19, 2020, 5:20pm UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002/4 "2020-06-19T17:20:01Z")

</div>

The foliage shouldn’t be spawning on top of meshes. What type of spawner are you using?  
is the layer still applied below the mesh?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_67ca133e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67ca133e](https://forums.unrealengine.com/u/anonymous_user_67ca133e)\
**Post date:** [June 19, 2020, 7:11pm UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002/5 "2020-06-19T19:11:47Z")

</div>

I am using the Procedural Foliage Spawner with a Foliage Type that has a simple foliage static mesh in it.

The layer is still applied to the spline as far as I can tell.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_67ca133e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67ca133e](https://forums.unrealengine.com/u/anonymous_user_67ca133e)\
**Post date:** [July 5, 2020, 10:21pm UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002/6 "2020-07-05T22:21:15Z")

</div>

bumpitybump

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_67ca133e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67ca133e](https://forums.unrealengine.com/u/anonymous_user_67ca133e)\
**Post date:** [August 7, 2020, 7:29pm UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002/7 "2020-08-07T19:29:29Z")

</div>

bumpitybump

---

<div class="post-metadata">

**Author:** ![Giopena22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Giopena22](https://forums.unrealengine.com/u/Giopena22)\
**Post date:** [January 24, 2021, 4:38pm UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002/8 "2021-01-24T16:38:39Z")

</div>

This may be long overdue but under “Procedural Foliage” settings within the PFS, check “Allow Foliage” and uncheck “Allow Static Mesh”. It should now remove any foliage that is colliding on your splines and/or static meshes you link to it. I hope this helps!

---

<div class="post-metadata">

**Author:** ![Mr.Wigglesnorts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr.Wigglesnorts](https://forums.unrealengine.com/u/Mr.Wigglesnorts)\
**Post date:** [May 27, 2022, 3:51pm UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002/9 "2022-05-27T15:51:46Z")

</div>

Thank you! I’ve got trees growing out of my river and I’ve been going crazy thinking it was something with the exclusion landscape layers settings.

---

<div class="post-metadata">

**Author:** ![Jgxxxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jgxxxx](https://forums.unrealengine.com/u/Jgxxxx)\
**Post date:** [March 23, 2025, 2:11pm UTC](https://forums.unrealengine.com/t/excluding-landscape-spline-wth-static-mesh-from-foliage-generation/146002/10 "2025-03-23T14:11:55Z")

</div>

No way to exclude manually painted foliage from landscape splines then?
