Skip to content

Simplygon Subsystem for Python ​

Subsystem Methods ​

NameDescription
is_task_result_availableChecks if the task with the given task id has completed and if its result is available to fetch.
wait_for_task_to_completeWaits until the specified task is finished. Returns directly if no task with the given ID has been scheduled.
wait_for_all_tasks_to_completeWaits until all scheduled subsystem tasks are finished.
get_number_of_currently_running_tasksReturns the number of tasks that are currently running in the background.
export_actors_to_sceneRun an async export task of the given actors using the given export settings.
export_static_mesh_components_to_sceneRun an async export task for the given static mesh components using the given export settings.
export_static_mesh_to_sceneRun an async export task for the given static mesh using the given export settings.
retrieve_export_scene_resultRetrieves the result of a task created using the Export[Actors
import_scene_as_actorsRun an async import task using the given import settings to spawn imported actors into the given world.
retrieve_import_scene_as_actors_resultRetrieves the result of a task created using the ImportSceneAsActors function.

Subsystem Properties ​

NameDescription
on_task_addedDelegate type for triggering when any task is added.
on_task_completedDelegate type for triggering when any task is completed.
on_export_scene_completedDelegate type for triggering when an export task is completed.
on_import_scene_as_actors_completedDelegate type for triggering when an import task is completed.

Data structs ​

NameDescription
SubsystemTaskResultStruct holding a result coming out of a SimplygonSubsystem task.
ExportSceneResultThe result coming out of an Export[Actors
ImportSceneAsActorsResultThe result coming out of an ImportSceneAsActors SimplygonSubsystem task.
SgSceneImportSettingsImport settings to use when importing a Simplygon scene.
SgGeometryImportSettingsImport settings to use when importing a Simplygon geometry data to a FMeshDescription.
SgMaterialImportSettingsImport settings to use when importing a Simplygon material to UMaterialInterface.
SgComponentExportSettingsExport settings to use when exporting a UStaticMeshComponent.
SgGeneralExportSettingsGeneral export settings
SgMeshExportSettingsSettings used to setup Simplygon API scene when exporting an individual UStaticMesh.
SgSceneMeshExportSettingsSettings used to setup Simplygon API scene when exporting a UStaticMesh as part of a scene.
SgSceneExportSettingsExport settings to use when exporting a Simplygon scene.
SgGeometryExportSettingsExport settings for geometry data to use when exporting a Simplygon scene.
SgMaterialExportSettingsExport settings for material data to use when exporting a Simplygon scene.
SgMaterialPropertiesThe material properties that are enabled will get flattened to textures, and exported with the scene.

Enums ​

NameDescription
SgSeparateMaterialsModeThe material separation mode to use when there is unique data sampled in a material.
SgSourceModelExportModeThis enum specifies which source model to export.

Functions details ​

is_task_result_available ​

Checks if the task with the given task id has completed and if its result is available to fetch.

wait_for_task_to_complete ​

Waits until the specified task is finished. Returns directly if no task with the given ID has been scheduled.

wait_for_all_tasks_to_complete ​

Waits until all scheduled subsystem tasks are finished.

get_number_of_currently_running_tasks ​

Returns the number of tasks that are currently running in the background.

export_actors_to_scene ​

Run an async export task of the given actors using the given export settings. Possible to bind a delegate callback to the OnExportSceneCompleted (from Python/Blueprints) or add a delegate to the native callback using GetNativeOnExportSceneCompleted (C++) which will be called when the export task is finished.

export_static_mesh_components_to_scene ​

Run an async export task for the given static mesh components using the given export settings. Possible to bind a delegate callback to the OnExportSceneCompleted (from Python/Blueprints) or add a delegate to the native callback using GetNativeOnExportSceneCompleted (C++) which will be called when the export task is finished.

export_static_mesh_to_scene ​

Run an async export task for the given static mesh using the given export settings. Possible to bind a delegate callback to the OnExportSceneCompleted (from Python/Blueprints) or add a delegate to the native callback using GetNativeOnExportSceneCompleted (C++) which will be called when the export task is finished.

retrieve_export_scene_result ​

Retrieves the result of a task created using the Export[Actors|StaticMeshComponents|StaticMesh]ToScene function. May include errors that should be checked before working with the data. Will wait until the task is completed if it hasn't already. If you don't want to implement a synchronous workflow, use the matching callback which will get the result directly or make sure to create all your Export[Actors|StaticMeshComponents|StaticMesh] tasks before retrieving the result for any of them.

import_scene_as_actors ​

Run an async import task using the given import settings to spawn imported actors into the given world. Possible to bind a delegate callback to the OnImportSceneAsActorsCompleted (from Python/Blueprints) or add a delegate to the native callback using GetNativeOnImportSceneAsActorsCompleted (C++) which will be called when the import task is finished.

retrieve_import_scene_as_actors_result ​

Retrieves the result of a task created using the ImportSceneAsActors function. May include errors that should be checked before working with the data. Will wait until the task is completed if it hasn't already. If you don't want to implement a synchronous workflow, use the matching callback which will get the result directly or make sure to create all your ImportSceneAsActors tasks before retrieving the result for any of them.

Properties details ​

on_task_added ​

Delegate type for triggering when any task is added.

on_task_completed ​

Delegate type for triggering when any task is completed.

on_export_scene_completed ​

Delegate type for triggering when an export task is completed.

on_import_scene_as_actors_completed ​

Delegate type for triggering when an import task is completed.

Data structs details ​

SubsystemTaskResult ​

Struct holding a result coming out of a SimplygonSubsystem task. FSubsystemTaskResult is the base abstract class holding everything common between the different types of tasks.

ExportSceneResult ​

The result coming out of an Export[Actors|StaticMeshComponents|StaticMesh]ToScene SimplygonSubsystem task.

ImportSceneAsActorsResult ​

The result coming out of an ImportSceneAsActors SimplygonSubsystem task.

SgSceneImportSettings ​

Import settings to use when importing a Simplygon scene.

SgGeometryImportSettings ​

Import settings to use when importing a Simplygon geometry data to a FMeshDescription.

SgMaterialImportSettings ​

Import settings to use when importing a Simplygon material to UMaterialInterface.

SgComponentExportSettings ​

Export settings to use when exporting a UStaticMeshComponent.

SgGeneralExportSettings ​

General export settings

SgMeshExportSettings ​

Settings used to setup Simplygon API scene when exporting an individual UStaticMesh.

SgSceneMeshExportSettings ​

Settings used to setup Simplygon API scene when exporting a UStaticMesh as part of a scene.

SgSceneExportSettings ​

Export settings to use when exporting a Simplygon scene.

SgGeometryExportSettings ​

Export settings for geometry data to use when exporting a Simplygon scene.

SgMaterialExportSettings ​

Export settings for material data to use when exporting a Simplygon scene.

SgMaterialProperties ​

The material properties that are enabled will get flattened to textures, and exported with the scene.

Enums details ​

SgSeparateMaterialsMode ​

The material separation mode to use when there is unique data sampled in a material.

SgSourceModelExportMode ​

This enum specifies which source model to export.