Documentation

Support

Asset Transformer SDK


User Manual

Python API

C# API

Changelog

Discussions

Asset Transformer SDK

Scene

Python API events
Read time 2 minutesLast updated 21 hours ago

ComponentChanged

def onComponentChanged(eventType, occurrence, component): passid = scene.addComponentChangedCallback(onComponentChanged)...scene.removeComponentChangedCallback(id)
Parameters

Type

Name

Description

ComponentChangeTypeeventTypeType of change.
OccurrenceoccurrenceOccurrence the component belongs to.
ComponentcomponentComponent concerned by change.

SceneChanged

def onSceneChanged(eventType, occurrence, child, finalOccurrence): passid = scene.addSceneChangedCallback(onSceneChanged)...scene.removeSceneChangedCallback(id)
Parameters

Type

Name

Description

SceneChangeTypeeventTypeType of change.
OccurrenceoccurrenceOccurrence concerned by change.
OccurrencechildChild occurrence for child insertion/removal.
OccurrencefinalOccurrenceOccurrence in the tree impact by the event.

AnimationAdded

def onAnimationAdded(animation): passid = scene.addAnimationAddedCallback(onAnimationAdded)...scene.removeAnimationAddedCallback(id)
Parameters

Type

Name

Description

AnimationanimationAdded animation.

AnimationChanged

def onAnimationChanged(animation): passid = scene.addAnimationChangedCallback(onAnimationChanged)...scene.removeAnimationChangedCallback(id)
Parameters

Type

Name

Description

AnimationanimationChanged Animation.

AnimationCleared

def onAnimationCleared(): passid = scene.addAnimationClearedCallback(onAnimationCleared)...scene.removeAnimationClearedCallback(id)

AnimationRemoved

def onAnimationRemoved(animation): passid = scene.addAnimationRemovedCallback(onAnimationRemoved)...scene.removeAnimationRemovedCallback(id)
Parameters

Type

Name

Description

AnimationanimationRemoved Animation.

IsolateBegan

def onIsolateBegan(): passid = scene.addIsolateBeganCallback(onIsolateBegan)...scene.removeIsolateBeganCallback(id)

IsolateEnded

def onIsolateEnded(): passid = scene.addIsolateEndedCallback(onIsolateEnded)...scene.removeIsolateEndedCallback(id)

SelectionChanged

def onSelectionChanged(type, occurrences): passid = scene.addSelectionChangedCallback(onSelectionChanged)...scene.removeSelectionChangedCallback(id)
Parameters

Type

Name

Description

SelectionChangeTypetypeType of change (CLEARED, ADDED or REMOVED).
OccurrenceListoccurrencesOnly if type is ADDED or REMOVED, list of added or removed occurrences.

VariantChanged

def onVariantChanged(type, variant): passid = scene.addVariantChangedCallback(onVariantChanged)...scene.removeVariantChangedCallback(id)
Parameters

Type

Name

Description

VariantChangeTypetypeType of change (ADDED, REMOVED, CURRENT_CHANGED).
Variantvariant

onRayProbe

def ononRayProbe(proberID, proberInfo): passid = scene.addonRayProbeCallback(ononRayProbe)...scene.removeonRayProbeCallback(id)
Parameters

Type

Name

Description

IdentproberIDThe ray propber ID.
ProberInfoproberInfoThe prober's info.

onSphereProbe

def ononSphereProbe(proberID, proberInfo): passid = scene.addonSphereProbeCallback(ononSphereProbe)...scene.removeonSphereProbeCallback(id)
Parameters

Type

Name

Description

IdentproberIDThe sphere propber ID.
ProberInfoproberInfoThe prober's info.