Created
May 27, 2020 09:23
-
-
Save andersx/0eba0175671ad1bf8460c53f9839cfc6 to your computer and use it in GitHub Desktop.
Pymol Gif-maker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SCRIPT=/home/andersx/dev/pymol_gif/lol.pml | |
WORK_DIR=`pwd` | |
INPUT=$1 | |
OUTPUT=${1%.xyz}.gif | |
cp $INPUT /tmp/ | |
cd /tmp/ | |
rm -f /tmp/mov*.png | |
cp $PWD/$INPUT . | |
pymol -c $INPUT $SCRIPT | |
cd $WORK_DIR | |
convert -delay 20 -loop 0 /tmp/mov*.png $WORK_DIR/$OUTPUT | |
rm -f /tmp/mov*.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment