unreal.PCGBlueprintElement
¶
- class unreal.PCGBlueprintElement(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
Object
PCGBlueprint Element
C++ Source:
Plugin: PCG
Module: PCG
File: PCGExecuteBlueprint.h
Editor Properties: (see get_editor_property/set_editor_property)
cacheable
(bool): [Read-Write] Not yet hooked up, currently work in progress. True if output data can be cached and reused if inputs do not change, false if blueprint should be executed every time.can_be_multithreaded
(bool): [Read-Write]category
(Text): [Read-Write]creates_artifacts
(bool): [Read-Write]custom_input_pins
(Array[PCGPinProperties]): [Read-Write]custom_output_pins
(Array[PCGPinProperties]): [Read-Write]dependency_parsing_depth
(int32): [Read-Write]description
(Text): [Read-Write]expose_to_library
(bool): [Read-Write]has_default_in_pin
(bool): [Read-Write]has_default_out_pin
(bool): [Read-Write]input_pin_labels
(Set[Name]): [Read-Write] deprecated: Property ‘InputPinLabels’ is deprecated.output_pin_labels
(Set[Name]): [Read-Write]
- property cacheable: bool¶
[Read-Write] Not yet hooked up, currently work in progress. True if output data can be cached and reused if inputs do not change, false if blueprint should be executed every time.
- Type:
(bool)
- execute(input) PCGDataCollection ¶
Execute
- Parameters:
input (PCGDataCollection) –
- Returns:
output (PCGDataCollection):
- Return type:
- execute_with_context(context, input) -> (context=PCGContext, output=PCGDataCollection)¶
~End UObject interface
- Parameters:
context (PCGContext) –
input (PCGDataCollection) –
- Returns:
context (PCGContext):
output (PCGDataCollection):
- Return type:
tuple
- get_random_stream(context) -> (RandomStream, context=PCGContext)¶
Creates a random stream from the settings & source component
- Parameters:
context (PCGContext) –
- Returns:
context (PCGContext):
- Return type:
- get_seed(context) -> (int32, context=PCGContext)¶
Gets the seed from the associated settings & source component
- Parameters:
context (PCGContext) –
- Returns:
context (PCGContext):
- Return type:
- iteration_loop(context, num_iterations, optional_a=None, optional_b=None, optional_out_data=None) -> (context=PCGContext, out_data=PCGPointData)¶
Calls the IterationLoopBody a fixed number of times, optional parameters are used to potentially initialized the Out Data, but otherwise are used to remove the need to have variables
- Parameters:
context (PCGContext) –
num_iterations (int64) –
optional_a (PCGSpatialData) –
optional_b (PCGSpatialData) –
optional_out_data (PCGPointData) –
- Returns:
context (PCGContext):
out_data (PCGPointData):
- Return type:
tuple
- iteration_loop_body(context, iteration, a, b, out_metadata) PCGPoint or None ¶
Iteration Loop Body
- Parameters:
context (PCGContext) –
iteration (int64) –
a (PCGSpatialData) –
b (PCGSpatialData) –
out_metadata (PCGMetadata) –
- Returns:
out_point (PCGPoint):
- Return type:
PCGPoint or None
- loop_n_times(context: PCGContext, num_iterations: int, optional_a: PCGSpatialData = Ellipsis, optional_b: PCGSpatialData = Ellipsis, optional_out_data: PCGPointData = Ellipsis) Tuple[PCGContext, PCGPointData] ¶
deprecated: ‘loop_n_times’ was renamed to ‘iteration_loop’.
- loop_on_point_pairs(context: PCGContext, outer_data: PCGPointData, inner_data: PCGPointData, optional_out_data: PCGPointData = Ellipsis) Tuple[PCGContext, PCGPointData] ¶
deprecated: ‘loop_on_point_pairs’ was renamed to ‘nested_loop’.
- loop_on_points(context: PCGContext, data: PCGPointData, optional_out_data: PCGPointData = Ellipsis) Tuple[PCGContext, PCGPointData] ¶
deprecated: ‘loop_on_points’ was renamed to ‘point_loop’.
- multi_loop_on_points(context: PCGContext, data: PCGPointData, optional_out_data: PCGPointData = Ellipsis) Tuple[PCGContext, PCGPointData] ¶
deprecated: ‘multi_loop_on_points’ was renamed to ‘variable_loop’.
- multi_point_loop_body(context: PCGContext, data: PCGPointData, point: PCGPoint, out_metadata: PCGMetadata) None ¶
deprecated: ‘multi_point_loop_body’ was renamed to ‘variable_loop_body’.
- nested_loop(context, outer_data, inner_data, optional_out_data=None) -> (context=PCGContext, out_data=PCGPointData)¶
Calls the NestedLoopBody function on all nested loop pairs (e.g. (o, i) for all o in Outer, i in Inner)
- Parameters:
context (PCGContext) –
outer_data (PCGPointData) –
inner_data (PCGPointData) –
optional_out_data (PCGPointData) –
- Returns:
context (PCGContext):
out_data (PCGPointData):
- Return type:
tuple
- nested_loop_body(context, outer_data, inner_data, outer_point, inner_point, out_metadata) PCGPoint or None ¶
Nested Loop Body
- Parameters:
context (PCGContext) –
outer_data (PCGPointData) –
inner_data (PCGPointData) –
outer_point (PCGPoint) –
inner_point (PCGPoint) –
out_metadata (PCGMetadata) –
- Returns:
out_point (PCGPoint):
- Return type:
PCGPoint or None
- node_color_override() LinearColor ¶
Node Color Override
- Return type:
- node_type_override() PCGSettingsType ¶
Node Type Override
- Return type:
- point_loop(context, data, optional_out_data=None) -> (context=PCGContext, out_data=PCGPointData)¶
Calls the PointLoopBody function on all points
- Parameters:
context (PCGContext) –
data (PCGPointData) –
optional_out_data (PCGPointData) –
- Returns:
context (PCGContext):
out_data (PCGPointData):
- Return type:
tuple
- point_loop_body(context, data, point, out_metadata) PCGPoint or None ¶
Point Loop Body
- Parameters:
context (PCGContext) –
data (PCGPointData) –
point (PCGPoint) –
out_metadata (PCGMetadata) –
- Returns:
out_point (PCGPoint):
- Return type:
PCGPoint or None
- point_pair_loop_body(context: PCGContext, outer_data: PCGPointData, inner_data: PCGPointData, outer_point: PCGPoint, inner_point: PCGPoint, out_metadata: PCGMetadata) PCGPoint | None ¶
deprecated: ‘point_pair_loop_body’ was renamed to ‘nested_loop_body’.
- variable_loop(context, data, optional_out_data=None) -> (context=PCGContext, out_data=PCGPointData)¶
Calls the VariableLoopBody function on all points, each call can return a variable number of points
- Parameters:
context (PCGContext) –
data (PCGPointData) –
optional_out_data (PCGPointData) –
- Returns:
context (PCGContext):
out_data (PCGPointData):
- Return type:
tuple
- variable_loop_body(context, data, point, out_metadata) Array[PCGPoint] ¶
Variable Loop Body
- Parameters:
context (PCGContext) –
data (PCGPointData) –
point (PCGPoint) –
out_metadata (PCGMetadata) –
- Return type: