unreal.PCGMeshSelectorPrimitiveData

class unreal.PCGMeshSelectorPrimitiveData(outer: Object | None = None, name: Name | str = 'None')

Bases: PCGMeshSelectorBase

Selector type that uses a table of primitive data (one row per primitive) and expects a table row index on the input points.

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGMeshSelectorPrimitiveData.h

Editor Properties: (see get_editor_property/set_editor_property)

  • custom_primitive_data_attributes (Array[PCGAttributePropertyInputSelector]): [Read-Write]

  • material_override_attributes (Array[Name]): [Read-Write] Per-material-slot list of attributes in primitive data that specify materials to override on the spawned primitives.

  • mesh_attribute (Name): [Read-Write] Attribute in primitive data that provides the mesh for the spawned primitives.

  • primitive_index_attribute (Name): [Read-Write] Attribute on input source data that serves as a row index into the primitive table.

  • primitive_override_attributes (Array[PCGObjectPropertyOverrideDescription]): [Read-Write] Array of attributes in primitive data that drive properties on the spawned primitives.

  • template_descriptor (PCGSoftISMComponentDescriptor): [Read-Write] Base/default settings for the spawned primitive before overrides are applied.