Skip to content

Instantly share code, notes, and snippets.

Avatar

gifguide2code

View GitHub Profile
@diramazioni
diramazioni / texture_change.py
Created Feb 27, 2014
blender python: texture change from command line
View texture_change.py
'''
texture image path are relative to the blend file directory. run from command line like this:
texture=img/2012720989_c.jpg blender -b mug.blend --python texture_change.py -F PNG -s 1 -e 1 -j 1 -t 0 -a
''''
import os
image_file = os.getenv('texture')
if not image_file:
image_file="img/2012720989_c.jpg"
You can’t perform that action at this time.