unreal.USDExporterLibrary

class unreal.USDExporterLibrary(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

Library of functions that can be used via Python scripting to help export Unreal scenes and assets to USD

C++ Source:

  • Plugin: USDImporter

  • Module: USDExporter

  • File: USDExporterBlueprintLibrary.h

classmethod get_instance_transforms(actor, foliage_type, instances_level=None)

Returns the transforms of all instances of a particular UFoliageType on a given level. If no level is provided all instances will be returned. Use GetUsedFoliageTypes() to retrieve all foliage types managed by a particular actor.

Parameters
Return type

Array(Transform)

classmethod get_instanced_foliage_actor_for_level(create_if_none=False, level=None) InstancedFoliageActor

Wraps AInstancedFoliageActor::GetInstancedFoliageActorForLevel, and allows retrieving the current AInstancedFoliageActor for a level. Will default to the current editor level if Level is left nullptr. This function is useful because it’s difficult to retrieve this actor otherwise, as it will be filtered from the results of functions like EditorLevelLibrary.get_all_level_actors()

Parameters
  • create_if_none (bool) –

  • level (Level) –

Return type

InstancedFoliageActor

classmethod get_source(foliage_type) Object

Returns the source asset for a UFoliageType. It can be a UStaticMesh in case we’re dealing with a UFoliageType_InstancedStaticMesh, but it can be other types of objects.

Parameters

foliage_type (FoliageType) –

Return type

Object

classmethod get_used_foliage_types(actor)

Returns all the different types of UFoliageType assets that a particular AInstancedFoliageActor uses. This function exists because we want to retrieve all instances of all foliage types on an actor, but we can’t return nested containers from UFUNCTIONs, so users of this API should call this, and then GetInstanceTransforms.

Parameters

actor (InstancedFoliageActor) –

Return type

Array(FoliageType)

classmethod send_analytics(attrs, event_name, automated, elapsed_seconds, number_of_frames, extension) None

Defer to the USDClasses module to actually send analytics information

Parameters