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
SceneChanged
def onSceneChanged(eventType, occurrence, child, finalOccurrence): passid = scene.addSceneChangedCallback(onSceneChanged)...scene.removeSceneChangedCallback(id)
Parameters
Type | Name | Description |
|---|
| SceneChangeType | eventType | Type of change. |
| Occurrence | occurrence | Occurrence concerned by change. |
| Occurrence | child | Child occurrence for child insertion/removal. |
| Occurrence | finalOccurrence | Occurrence in the tree impact by the event. |
AnimationAdded
def onAnimationAdded(animation): passid = scene.addAnimationAddedCallback(onAnimationAdded)...scene.removeAnimationAddedCallback(id)
Parameters
Type | Name | Description |
|---|
| Animation | animation | Added animation. |
AnimationChanged
def onAnimationChanged(animation): passid = scene.addAnimationChangedCallback(onAnimationChanged)...scene.removeAnimationChangedCallback(id)
Parameters
Type | Name | Description |
|---|
| Animation | animation | Changed 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 |
|---|
| Animation | animation | Removed 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 |
|---|
| SelectionChangeType | type | Type of change (CLEARED, ADDED or REMOVED). |
| OccurrenceList | occurrences | Only 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
onRayProbe
def ononRayProbe(proberID, proberInfo): passid = scene.addonRayProbeCallback(ononRayProbe)...scene.removeonRayProbeCallback(id)
Parameters
Type | Name | Description |
|---|
| Ident | proberID | The ray propber ID. |
| ProberInfo | proberInfo | The prober's info. |
onSphereProbe
def ononSphereProbe(proberID, proberInfo): passid = scene.addonSphereProbeCallback(ononSphereProbe)...scene.removeonSphereProbeCallback(id)
Parameters
Type | Name | Description |
|---|
| Ident | proberID | The sphere propber ID. |
| ProberInfo | proberInfo | The prober's info. |