| 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 | #
|
|---|
| 9 | radius = 1.5
|
|---|
| 10 | link_radius = 0.8
|
|---|
| 11 | color = (1,1,0,1) # red, green, blue, opacity
|
|---|
| 12 | link_color = (0,.5,1,1)
|
|---|
| 13 | xyz1 = (-1.2, 3.5, 5.0)
|
|---|
| 14 | xyz2 = (2, 6, 7.5)
|
|---|
| 15 |
|
|---|
| 16 | from VolumePath import Marker_Set, Link
|
|---|
| 17 |
|
|---|
| 18 | s = Marker_Set('Some markers')
|
|---|
| 19 | m1 = s.place_marker(xyz1, color, radius)
|
|---|
| 20 | m2 = s.place_marker(xyz2, color, radius)
|
|---|
| 21 | l12 = Link(m1, m2, link_color, link_radius)
|
|---|