Working with the Datasmith Scene
You'll mainly interact with the Datasmith Scene in order to retrieve lists of the elements outlined above. To do this, you'll use the
DatasmithSceneElementBase in Python, or the Datasmith > Scene nodes in Blueprint as shown in the examples above.
Once you have a list of elements, you can iterate through the list to retrieve a particular element. Then, use the Python API for that element (such as
DatasmithMeshActorElement), or the Datasmith > Element nodes in Blueprint, to get and set information about that particular element. If your element is an Actor type, you can also get its child actor elements, which lets you browse downward through the scene hierarchy.
If you want to remove existing elements from the scene (as shown in the examples above), or add new elements, you can do this through the
DatasmithSceneElementBase in Python, or the Datasmith > Scene nodes in Blueprint. For example, you could re-shuffle the hierarchy of Actors by removing them and re-adding them under different parents.