Re: [Chimera-users] how to draw lines in Chimera
On Jun 24, 2008, at 4:24 PM, Qing Xie wrote:
Hi, I'm trying to draw a bunch of axes from center (0,0,0). I could do this in 'O' by calling this macro:
begin_object symax colour blue stick_xyz 139.05, -0.00, -16.25, -139.05, 0.00, 16.25, 0.25 stick_xyz -111.40, 43.12, 73.02, 111.40, -43.12, -73.02, 0.25 stick_xyz -107.48, 80.74, 39.10, 107.48, -80.74, -39.10, 0.25 stick_xyz -66.72, 119.11, -31.00, 66.72, -119.11, 31.00, 0.25 stick_xyz 50.41, 73.78, -107.77, -50.41, -73.78, 107.77, 0.25 stick_xyz 100.65, 0.20, -97.31, -100.65, -0.20, 97.31, 0.25 stick_xyz -68.88, 113.16, 45.26, 68.88, -113.16, -45.26, 0.25 stick_xyz -39.02, 80.98, -107.34, 39.02, -80.98, 107.34, 0.25 stick_xyz 10.15, 0.20, -139.64, -10.15, -0.20, 139.64, 0.25 stick_xyz 50.47, -73.42, -108.00, -50.47, 73.42, 108.00, 0.25 end_object symax
Since I had to use some features in Chimera, do you know what commands I should combine to do similar things above? Thank you! Sincerely, Qing
Hi Qing, You can make a BILD file defining the objects, for example containing the following: .color medium blue .cylinder 139.05 -0.00 -16.25 -139.05 0.00 16.25 1 .cylinder -111.40 43.12 73.02 111.40 -43.12 -73.02 1 .cylinder -107.48 80.74 39.10 107.48 -80.74 -39.10 1 .cylinder -66.72 119.11 -31.00 66.72 -119.11 31.00 1 .cylinder 50.41 73.78 -107.77 -50.41 -73.78 107.77 1 .cylinder 100.65 0.20 -97.31 -100.65 -0.20 97.31 1 .cylinder -68.88 113.16 45.26 68.88 -113.16 -45.26 1 .cylinder -39.02 80.98 -107.34 39.02 -80.98 107.34 1 .cylinder 10.15 0.20 -139.64 -10.15 -0.20 139.64 1 .cylinder 50.47 -73.42 -108.00 -50.47 73.42 108.00 1 and open it in Chimera to create the objects. I also attached this below as the file sticks.bild to be opened directly in Chimera. I didn't think 0.25 looked that good, but you can edit the file to whatever radius (and color, etc.) that you want. The BILD language also includes many other objects: http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/bild.html Best, Elaine ----- Elaine C. Meng, Ph.D. meng@cgl.ucsf.edu UCSF Computer Graphics Lab and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco http://www.cgl.ucsf.edu/home/meng/index.html
participants (1)
-
Elaine Meng