How to parametrize a landscape paint layer inside a blueprint?

Hello

I’ve been playing around with making tools for editing landscape using blueprints, and I stumbled upon a problem that is rather annoying. The problem is that I can’t figure out how to parametrize a landscape layer info. The info is used by an “Editor apply spline” function that modifies the landscape. There should be a way to at least specify the wanted layer by typing it as a string (similar to in the procedural foliage tool where you type in the layer name), otherwise I have to hardcode the layer or make some gigantic if else chain.

Edit: To add, the “promote to variable” button is greyed out.

Wow, no responses since 2015. Did you find a solution? I’m also looking to make this a variable.

Still not fixed. We need just a variable type come on epic wizards :wink:

Also having this issue as of right now, 4.20.

Unfortunately, this issue persists in 4.22. At my previous employer we were able to very quickly make a couple of functions to get an array of landscape layer names (given a landscape reference) and then to get a layer info reference by name to set as the Paint Layer. Probably not the most elegant solution but it was quick to implement.

It would be great to get an engine fix for this though because being able to paint on landscape with splines can be a real boon for editor tool development!

Can you show me the left side of this graph? I need more info to get this working. What should I put into the target? Get landscape? What object does that then get? I am so confused