Documentation

Support

Asset Transformer SDK


User Manual

Python API

C# API

Changelog

Discussions

Asset Transformer SDK

Occurrence

Learn about occurrences in the scene, including their properties, functions, and how to work with prototypes and instances.
Read time 1 minuteLast updated 21 hours ago

API reference The nodes in the product structure are referred to as occurrences. Most of the optimization functions take an occurrence or a list of occurrences as input. This table shows examples:

Function

Description

algo.tessellate([1], …)Specify [1] to run the algorithm on all the direct and indirect child occurrences of this occurrence.
scene.getRoot()Use this function to retrieve the root occurrence of your scene.
scene.findOccurrencesByProperty(property, regex)Use this function to find occurrences that have a specific property.
This table shows the properties of occurrences:

Property

Type

Description

IdIdentA unique unsigned int identifier.
NameStringThe name of this occurrence.
VisibleInheritableBoolThe visibility status of this occurrence.
MaterialEntityThe optional material of this occurrence.
TransformMatrix4Local transform matrix of this occurrence, storing local position, rotation and scale information.
PrototypeEntityPrototype occurrence. If exists this occurrence inherits from its prototype's properties.
An occurrence that's instantiated elsewhere in the product structure is referred to as a prototype. References to a prototype are referred to as instances. To instantiate an occurrence and its subtree, use the scene.prototypeSubTree function. The returned subtree shares the same components, geometries, and materials as the prototyped subtree.