get_child method

get_child

Gets the child node at specified index.

Returns

The child.

def get_child(self, index):
    ...
ParameterTypeDescription
indexintIndex.

Example

The following code shows how to get a child node at specified index.

from aspose.threed import Scene

scene = Scene.from_file("input.fbx")
node = scene.root_node.get_child(0)
print(f"The first node of the file is {node.name}")

get_child

Gets the child node with the specified name

Returns

The child.

def get_child(self, node_name):
    ...
ParameterTypeDescription
node_namestrThe child name to find.

Example

The following code shows how to get a child node with specified name

from aspose.threed import Scene

scene = Scene.from_file("input.fbx")
node = scene.root_node.get_child("box")
print(f"The box node's translation is {node.transform.translation}")

See Also