-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
23 lines (18 loc) · 782 Bytes
/
__init__.py
File metadata and controls
23 lines (18 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#### Pipeline Source Name ####
# Description of your Python-based pipeline source.
from ovito.data import DataCollection
from ovito.pipeline import PipelineSourceInterface
# from traits.api import Range, observe
class PipelineSourceName(PipelineSourceInterface):
'''
# Parameter controlling the animation length (value can be changed by the user):
duration = Range(low=1, value=10)
def compute_trajectory_length(self, **kwargs):
return self.duration
# This is needed to notify the pipeline system whenever the duration is changed by the user:
@observe("duration")
def anim_duration_changed(self, event):
self.notify_trajectory_length_changed()
'''
def create(self, data: DataCollection, *, frame: int, **kwargs):
pass