Documentation

Asset Transformer Studio


User Manual

Python API

Changelog

Asset Transformer Studio


Scene

Python API events
Read time 2 minutesLast updated a month ago

ComponentChanged

def onComponentChanged(eventType, occurrence, component): pass id = 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): pass id = 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): pass id = scene.addAnimationAddedCallback(onAnimationAdded) ... scene.removeAnimationAddedCallback(id)
Parameters

Type

Name

Description

AnimationanimationAdded animation.

AnimationChanged

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

Type

Name

Description

AnimationanimationChanged Animation.

AnimationCleared

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

AnimationRemoved

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

Type

Name

Description

AnimationanimationRemoved Animation.

IsolateBegan

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

IsolateEnded

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

SelectionChanged

def onSelectionChanged(type, occurrences): pass id = 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): pass id = scene.addVariantChangedCallback(onVariantChanged) ... scene.removeVariantChangedCallback(id)
Parameters

Type

Name

Description

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

onRayProbe

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

Type

Name

Description

IdentproberIDThe ray propber ID.
ProberInfoproberInfoThe prober's info.

onSphereProbe

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

Type

Name

Description

IdentproberIDThe sphere propber ID.
ProberInfoproberInfoThe prober's info.