Created
March 31, 2017 17:14
-
-
Save akloster/3732ad9af29798169f5b5d69a74f2d0f to your computer and use it in GitHub Desktop.
create an image caption in blender python part 1
This file contains hidden or 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
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