material property

material property

Gets or sets the first material associated with this node, if sets, will clear other materials

Example

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

scene = Scene()
node = scene.root_node.create_child_node(Box())
node.material = LambertMaterial()

Definition:

@property
def material(self):
    ...
@material.setter
def material(self, value):
    ...

See Also