ovito.traits

Added 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.Color(default=(1.0, 1.0, 1.0), **metadata)

A trait type that stores a tuple of three floats representing the RGB components of a color parameter. The three components must be in the range 0.0 - 1.0.

class ovito.traits.FilePath(default='', **metadata)

A trait type that stores a filesystem path. In the GUI, a file selection dialog is displayed for the user to pick the trait value.

Added in version 3.10.0.

Parameters:

default (str)

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

A trait type that stores an instance of a class from the ovito package, e.g. a visual element, modifier, or data object.

class ovito.traits.Vector2(default=(0.0, 0.0), **metadata)

A trait type that stores a tuple of two floats, which represent a vector or point in 2d space.

Added in version 3.10.0.

class ovito.traits.Vector3(default=(0.0, 0.0, 0.0), **metadata)

A trait type that stores a tuple of three floats, which represent a vector or point in 3d space.

Added in version 3.10.0.