unreal.USDTestingLibrary
¶
- class unreal.USDTestingLibrary(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibrary
Library of functions that can be used via Python scripting to help testing the other USD functionality
C++ Source:
Plugin: USDImporter
Module: USDTests
File: USDTestsBlueprintLibrary.h
- classmethod clear_transaction_history() None ¶
Clears the editor transaction history (useful to be run before GC, to check for otherwise unreferenced assets)
- classmethod dirty_stage_actor_blueprint(blueprint_derived_stage_actor) None ¶
Intentionally dirties the UBlueprint for the given stage actor’s generated class. This is useful for testing how the stage actor behaves when going into PIE with a dirty blueprint, as that usually triggers a recompile at the very sensitive PIE transition
- Parameters:
blueprint_derived_stage_actor (UsdStageActor) –
- classmethod get_subtree_material_slot_count(stage_actor, prim_path) int64 ¶
Queries a subtree material slot count using the stage actor’s info cache, which is not yet exposed to blueprint. May return -1 in case of an error.
- Parameters:
stage_actor (UsdStageActor) –
prim_path (str) –
- Return type:
int64
- classmethod get_subtree_vertex_count(stage_actor, prim_path) int64 ¶
Queries a subtree vertex count using the stage actor’s info cache, which is not yet exposed to blueprint. May return -1 in case of an error.
- Parameters:
stage_actor (UsdStageActor) –
prim_path (str) –
- Return type:
int64
- classmethod recompile_blueprint_stage_actor(blueprint_derived_stage_actor) bool ¶
Helps test the effects of blueprint recompilation on the spawned actors and assets when a stage is opened. Returns whether it compiled successfully or not.
- Parameters:
blueprint_derived_stage_actor (UsdStageActor) –
- Return type:
- classmethod set_usd_stage_cpp(stage_actor, new_stage_root_layer) None ¶
Internally opens the provided stage and sets it on the stage actor via C++
- Parameters:
stage_actor (UsdStageActor) –
new_stage_root_layer (str) –