unreal.USDTestingLibrary

class unreal.USDTestingLibrary(outer: Optional[Object] = None, name: Union[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 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:
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:
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:

bool