#!/usr/bin/env python3

import sys
from chimerax.core.commands import run

#print (str(sys.argv[1]))

run(session, "open " + str(sys.argv[1]))
#run(session, "open 1d66")
run(session, "color red")
run (session, "save fig1.png")

run (session, "exit")

#to run nogui should work like this in linux with offscreen option
#in Mac it works like this but does not saves images
#.../MacOS/ChimeraX --script "test.py 1d66" --nogui 




