Scripts: markeruse.py

File markeruse.py, 589 bytes (added by goddard, 16 years ago)
Line 
1#
2# Example Python script creating markers and links between markers using
3# the Chimera Volume Tracer tool.
4#
5# Marker sets, marker and link objects are defined in the Chimera Python file:
6#
7# chimera/share/VolumePath/markerset.py
8#
9radius = 1.5
10link_radius = 0.8
11color = (1,1,0,1) # red, green, blue, opacity
12link_color = (0,.5,1,1)
13xyz1 = (-1.2, 3.5, 5.0)
14xyz2 = (2, 6, 7.5)
15
16from VolumePath import Marker_Set, Link
17
18s = Marker_Set('Some markers')
19m1 = s.place_marker(xyz1, color, radius)
20m2 = s.place_marker(xyz2, color, radius)
21l12 = Link(m1, m2, link_color, link_radius)