unreal.PCGPoint
¶
- class unreal.PCGPoint(transform: Transform = Ellipsis, density: float = 0.0, bounds_min: Vector = Ellipsis, bounds_max: Vector = Ellipsis, color: Vector4 = Ellipsis, steepness: float = 0.0, seed: int = 0, metadata_entry: int = 0)¶
Bases:
StructBase
C++ Source:
Plugin: PCG
Module: PCG
File: PCGPoint.h
Editor Properties: (see get_editor_property/set_editor_property)
bounds_max
(Vector): [Read-Write]bounds_min
(Vector): [Read-Write]color
(Vector4): [Read-Write]density
(float): [Read-Write]metadata_entry
(int64): [Read-Only]seed
(int32): [Read-Write]steepness
(float): [Read-Write]transform
(Transform): [Read-Write]
- copy_point(copy_metadata=True, metadata=None, out_metadata=None) PCGPoint ¶
Point functions
- Parameters:
copy_metadata (bool) –
metadata (PCGMetadata) –
out_metadata (PCGMetadata) –
- Returns:
out_point (PCGPoint):
- Return type:
- get_bool_attribute(metadata, attribute_name) bool ¶
Get Bool Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
- get_double_attribute(metadata, attribute_name) double ¶
Get Double Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
double
- get_float_attribute(metadata, attribute_name) float ¶
Get Float Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
- get_integer32_attribute(metadata, attribute_name) int32 ¶
Get Integer 32Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
int32
- get_integer64_attribute(metadata, attribute_name) int64 ¶
Get Integer 64Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
int64
- get_quat_attribute(metadata, attribute_name) Quat ¶
Get Quat Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
- get_random_stream(optional_settings=None, optional_component=None) RandomStream ¶
Creates a random stream from a point’s seed and settings/component’s seed (optional)
- Parameters:
optional_settings (PCGSettings) –
optional_component (PCGComponent) –
- Return type:
- get_rotator_attribute(metadata, attribute_name) Rotator ¶
Get Rotator Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
- get_string_attribute(metadata, attribute_name) str ¶
Get String Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
- get_transform_attribute(metadata, attribute_name) Transform ¶
Get Transform Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
- get_vector2_attribute(metadata, attribute_name) Vector2D ¶
Get Vector 2Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
- get_vector4_attribute(metadata, attribute_name) Vector4 ¶
Get Vector 4Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
- get_vector_attribute(metadata, attribute_name) Vector ¶
Get Vector Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
- has_attribute_set(metadata, attribute_name) bool ¶
Has Attribute Set
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
- Return type:
- initialize_metadata(metadata, parent_point, parent_metadata=None) None ¶
Assigns a metadata entry key and will copy attribute values if from an unrelated metadata. Note: a null ParentMetadata assumes this is the same as Metadata
- Parameters:
metadata (PCGMetadata) –
parent_point (PCGPoint) –
parent_metadata (PCGMetadata) –
- set_bool_attribute(metadata, attribute_name, value) None ¶
Set Bool Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (bool) –
- set_double_attribute(metadata, attribute_name, value) None ¶
Set Double Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (double) –
- set_float_attribute(metadata, attribute_name, value) None ¶
Set Float Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (float) –
- set_integer32_attribute(metadata, attribute_name, value) None ¶
Set Integer 32Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (int32) –
- set_integer64_attribute(metadata, attribute_name, value) None ¶
Set Integer 64Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (int64) –
- set_quat_attribute(metadata, attribute_name, value) None ¶
Set Quat Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (Quat) –
- set_rotator_attribute(metadata, attribute_name, value) None ¶
Set Rotator Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (Rotator) –
- set_string_attribute(metadata, attribute_name, value) None ¶
Set String Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (str) –
- set_transform_attribute(metadata, attribute_name, value) None ¶
Set Transform Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (Transform) –
- set_vector2_attribute(metadata, attribute_name, value) None ¶
Set Vector 2Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (Vector2D) –
- set_vector4_attribute(metadata, attribute_name, value) None ¶
Set Vector 4Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (Vector4) –
- set_vector_attribute(metadata, attribute_name, value) None ¶
Set Vector Attribute
- Parameters:
metadata (PCGMetadata) –
attribute_name (Name) –
value (Vector) –