create_child_node method

create_child_node

Creates a child node

Returns

The new child node.

def create_child_node(self):
    ...

Example

The following code shows how to create a new child node under root node

from aspose.threed import Scene
from aspose.threed.entities import Box

scene = Scene()
node = scene.root_node.create_child_node()
node.entity = Box()
scene.save("output.fbx")

create_child_node

Create a new child node with given node name

Returns

The new child node.

def create_child_node(self, node_name):
    ...
ParameterTypeDescription
node_namestrThe new child node’s name

Example

The following code shows how to create a new child node under root node

from aspose.threed import Scene
from aspose.threed.entities import Box

scene = Scene()
node = scene.root_node.create_child_node("new node")
node.entity = Box()
scene.save("output.fbx")

create_child_node

Create a new child node with given entity attached

Returns

The new child node.

def create_child_node(self, entity):
    ...
ParameterTypeDescription
entityEntityDefault entity attached to the node

Example

The following code shows how to create a new child node under root node

from aspose.threed import Scene
from aspose.threed.entities import Box

scene = Scene()
node = scene.root_node.create_child_node(Box())
scene.save("output.fbx")

create_child_node

Create a new child node with given node name

Returns

The new child node.

def create_child_node(self, node_name, entity):
    ...
ParameterTypeDescription
node_namestrThe new child node’s name
entityEntityDefault entity attached to the node

create_child_node

Create a new child node with given node name, and attach specified entity and a material

Returns

The new child node.

def create_child_node(self, node_name, entity, material):
    ...
ParameterTypeDescription
node_namestrThe new child node’s name
entityEntityDefault entity attached to the node
materialaspose.threed.shading.MaterialThe material attached to the node

See Also