Skip to content

Instantly share code, notes, and snippets.

@andersx
Created May 27, 2020 09:23
Show Gist options
  • Save andersx/0eba0175671ad1bf8460c53f9839cfc6 to your computer and use it in GitHub Desktop.
Save andersx/0eba0175671ad1bf8460c53f9839cfc6 to your computer and use it in GitHub Desktop.
Pymol Gif-maker
#!/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