unreal.PVImportTexture2DParams¶
- class unreal.PVImportTexture2DParams¶
Bases:
StructBasePVImport Texture 2DParams
C++ Source:
Plugin: ProceduralVegetationEditor
Module: ProceduralVegetation
File: PVImportTexture2DParams.h
Editor Properties: (see get_editor_property/set_editor_property)
color_channel(PCGTextureColorChannel): [Read-Write] Which color channel to read brightness from.Which color channel to read brightness from Red / Green / Blue / Alpha.
invert_image(bool): [Read-Write] Invert image colors (use for dark plant on light background).When on, the brightness is inverted before tracing. Use when your source image has dark plant shapes on a light background.
max_tip_angle_search_dist(float): [Read-Write] Search distance for confirming detected tips.How far the algorithm looks from a candidate tip to confirm it. Larger values catch tips on smooth curves; smaller values are stricter.
min_bounds_area(float): [Read-Write] Minimum region area to count as a plant region (fraction of image).Filters out small specks. 0.05 = ignore regions smaller than 5% of the image area. Lower to detect tiny plants in a sparse image; raise to focus only on the main shape.
plant_settings(Array[PVImportTexture2DPlantSettings]): [Read-Write] Per-plant placement settings (root position, rotation, scale).sample_resolution(int32): [Read-Write] Texture sampling resolution.How densely the image is sampled during tracing. Higher = more detail, slower.
simplification_amount(float): [Read-Write] How much to simplify the traced skeleton.Higher = fewer skeleton points, simpler structure. 0 = full detail. 1.0 = light simplification (default). Higher = heavy simplification.
smoothing_iterations(int32): [Read-Write] How many passes of smoothing applied to the traced outline.Higher = smoother branch curves with less jagged outline noise. 0 = raw trace. Excessive smoothing may round away plant features.
texture2d_asset(Texture2D): [Read-Write] The texture asset to trace.Pick a texture from the content browser.
tip_angle_threshold_in_degrees(float): [Read-Write] Minimum corner angle to detect a branch tip.Sharper corners (smaller angles) are detected as branch tips. Lower values = more detected tips (more sensitive). Higher values = only sharp endpoints qualify.
white_level(float): [Read-Write] Brightness threshold for ‘plant’ vs. ‘background’.Pixels above this brightness are considered plant; below are background. Default 0.01 = nearly any non-black pixel is plant. Raise to ignore noise; lower to include faint pixels.