New in version 3.8.0.

This module provides specific trait types which are used in the context of custom modifiers and other extension classes to define additional object parameters. They supplement the generic trait types provided by the Traits Python package.

class ovito.traits.ColorTrait(default=(1.0, 1.0, 1.0), **metadata)

A trait type whose value is a tuple with three floats that represent the RGB values of a color.

class ovito.traits.OvitoObjectTrait(klass, factory=None, **params)

A trait type whose value is an instance of a class from the ovito package.