Skip to content

Instantly share code, notes, and snippets.

@akloster
Created March 31, 2017 17:14
Show Gist options
  • Save akloster/3732ad9af29798169f5b5d69a74f2d0f to your computer and use it in GitHub Desktop.
Save akloster/3732ad9af29798169f5b5d69a74f2d0f to your computer and use it in GitHub Desktop.
create an image caption in blender python part 1
import os
import sys
import argparse
try:
import bpy
except ImportError:
print("Module 'bpy' could not be imported. This probably means you are not using Blender to run this script.")
sys.exit(1)
prog_name = "Captions Tool "
if '--' not in sys.argv:
print(prog_name + "No '--' found in command line arguments. '--' is needed to pass arguments to this script.")
sys.exit(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment