Skip to content
Jigwright

Set Layer Blend Method

Set the blend method on a LandscapeLayerInfo asset and verify by reading it back. On a landscape using edit layers, prefer PremultipliedAlphaBlending - FinalWeightBlending is the legacy path and does not composite correctly with edit layers. Leaves the package dirty; call hf_save_object to persist.

hf_set_layer_blend_methodWrite

Arguments

NameTypeDescription
blend_methodreqstringNone: weight unaffected by other layers. FinalWeightBlending: legacy, blends only after edit layers resolve. PremultipliedAlphaBlending: blends per edit layer, use this with edit layers.
None | FinalWeightBlending | PremultipliedAlphaBlending
layer_inforeqstringAsset path of a LandscapeLayerInfoObject. Get it from hf_list_landscape_layers.
forceboolean
= false
Edit even when the asset cannot currently be saved - for example when revision control is configured but disconnected. The change will be made in memory and WILL BE LOST unless the underlying problem is fixed before saving. Only pass this if you intend to discard the work or fix the connection first.

Also in Landscape: