Ticket #3582: generate.V1.py
File generate.V1.py, 428 bytes (added by , 5 years ago) |
---|
Line | |
---|---|
1 | #!/usr/bin/env python3 |
2 | |
3 | import sys |
4 | from chimerax.core.commands import run |
5 | |
6 | #print (str(sys.argv[1])) |
7 | |
8 | run(session, "open " + str(sys.argv[1])) |
9 | #run(session, "open 1d66") |
10 | run(session, "color red") |
11 | run (session, "save fig1.png") |
12 | |
13 | run (session, "exit") |
14 | |
15 | #to run nogui should work like this in linux with offscreen option |
16 | #in Mac it works like this but does not saves images |
17 | #.../MacOS/ChimeraX --script "test.py 1d66" --nogui |
18 | |
19 | |
20 | |
21 |