unreal.NiagaraSimCache
¶
- class unreal.NiagaraSimCache(outer: Optional[Object] = None, name: Union[Name, str] = 'None')¶
Bases:
Object
Niagara Sim Cache
C++ Source:
Plugin: Niagara
Module: Niagara
File: NiagaraSimCache.h
Editor Properties: (see get_editor_property/set_editor_property)
duration_seconds
(float): [Read-Only] Duration Secondssoft_niagara_system
(NiagaraSystem): [Read-Only] Soft Niagara Systemstart_seconds
(float): [Read-Only] Start Seconds
- get_attribute_capture_mode() NiagaraSimCacheAttributeCaptureMode ¶
How were the attributes captured for this sim cache.
- Return type:
- get_emitter_name(emitter_index) Name ¶
Get the emitter name at the provided index.
- Parameters:
emitter_index (int32) –
- Return type:
- get_num_emitters() int32 ¶
Get number of emitters stored inside the cache.
- Return type:
int32
- get_num_frames() int32 ¶
Get number of frames stored in the cache.
- Return type:
int32
- is_cache_valid() bool ¶
A valid cache is one that contains at least 1 frames worth of data.
- Return type:
- read_color_attribute(attribute_name='Color', emitter_name='None', frame_index=0) Array[LinearColor] ¶
Reads Niagara Color attributes by name from the cache frame and appends them into the OutValues array. EmitterName - If left blank will return the system simulation attributes.
- Parameters:
- Returns:
out_values (Array[LinearColor]):
- Return type:
- read_float_attribute(attribute_name, emitter_name, frame_index=0) Array[float] ¶
Reads Niagara float attributes by name from the cache frame and appends them into the OutValues array. EmitterName - If left blank will return the system simulation attributes.
- read_int_attribute(attribute_name, emitter_name, frame_index=0) Array[int32] ¶
Reads Niagara int attributes by name from the cache frame and appends them into the OutValues array. EmitterName - If left blank will return the system simulation attributes.
- read_position_attribute(attribute_name='Position', emitter_name='None', local_space_to_world=True, frame_index=0) Array[Vector] ¶
Reads Niagara Position attributes by name from the cache frame and appends them into the OutValues array. Local space emitters provide data at local locations unless bLocalSpaceToWorld is true. EmitterName - If left blank will return the system simulation attributes. LocalSpaceToWorld - Caches are always stored in the emitters space, i.e. local or world space. You can set this to false if you want the local position rather than the world position.
- read_position_attribute_with_rebase(transform, attribute_name='Position', emitter_name='None', frame_index=0) Array[Vector] ¶
Reads Niagara Position attributes by name from the cache frame and appends them into the OutValues array. All attributes read with this method will be re-based from the captured space into the provided transform space, this will occur even if the cache was not captured with re-basing enabled. EmitterName - If left blank will return the system simulation attributes.
- read_quat_attribute(attribute_name='MeshOrientation', emitter_name='None', local_space_to_world=True, frame_index=0) Array[Quat] ¶
Reads Niagara Quaternion attributes by name from the cache frame and appends them into the OutValues array. Local space emitters provide data at local rotation unless bLocalSpaceToWorld is true. EmitterName - If left blank will return the system simulation attributes. LocalSpaceToWorld - Caches are always stored in the emitters space, i.e. local or world space. You can set this to false if you want the local Quat rather than the world Quat.
- read_quat_attribute_with_rebase(quat, attribute_name='MeshOrientation', emitter_name='None', frame_index=0) Array[Quat] ¶
Reads Niagara Quaternion attributes by name from the cache frame and appends them into the OutValues array. Only attributes that in the rebase list will be transform into the provided Quat space. Therefore the cache must be captured with rebasing enabled to have any impact. EmitterName - If left blank will return the system simulation attributes.
- read_vector2_attribute(attribute_name, emitter_name, frame_index=0) Array[Vector2D] ¶
Reads Niagara Vec2 attributes by name from the cache frame and appends them into the OutValues array. EmitterName - If left blank will return the system simulation attributes.
- read_vector4_attribute(attribute_name, emitter_name, frame_index=0) Array[Vector4] ¶
Reads Niagara Vec4 attributes by name from the cache frame and appends them into the OutValues array. EmitterName - If left blank will return the system simulation attributes.