unreal.DatasmithActorElement

class unreal.DatasmithActorElement(outer=None, name='None')

Bases: unreal.DatasmithObjectElement

  • UDatasmithActorElement

C++ Source:

  • Plugin: DatasmithImporter

  • Module: DatasmithImporter

  • File: DatasmithUObjectElements.h

add_child(child)None

Adds a child to the Actor Element

Parameters

child (DatasmithActorElement) –

get_children()

Get the children of the mesh actor. Use AddChild -or- RemoveChild to modify the actor’s children

Returns

Return type

Array(DatasmithActorElement)

get_children_count() → int32

Get the number of children on this actor

Returns

Return type

int32

get_layer()str

Get the the name of the layer that contains this entity

Returns

Return type

str

get_rotation()Quat

Get rotation (in quaternion format) of this entity

Returns

Return type

Quat

get_scale()Vector

Get absolute scale of this entity

Returns

Return type

Vector

get_tags()

Get the tags of an Actor element

Returns

Return type

Array(str)

get_translation()Vector

Get absolute translation of this entity

Returns

Return type

Vector

get_visibility()bool

Get the actor’s visibility

Returns

Return type

bool

remove_child(child)None

Remove a new child from the Actor Element

Parameters

child (DatasmithActorElement) –

set_layer(layer)None

Set the the the layer that contains this entity, layer will be auto-created from its name

Parameters

layer (str) –

set_rotation(value)None

Set rotation (in quaternion format) of this entity

Parameters

value (Quat) –

set_scale(value)None

Set absolute scale of this entity

Parameters

value (Vector) –

set_tags(tags)None

Set the tags of an Actor element

Parameters

tags (Array(str)) –

set_translation(value)None

Set absolute translation of this entity

Parameters

value (Vector) –

set_visibility(visibility)None

Set the actor’s visibility

Parameters

visibility (bool) –