enzyme69 / blendersushi

Blender Sushi related scripts. Mostly about Sverchok, Geometry Nodes, Animation Nodes, and related Python scripts.
243 stars 33 forks source link

TOOL / Command Line Batch Generator using AN #212

Open enzyme69 opened 6 years ago

enzyme69 commented 6 years ago

screen shot 2017-12-05 at 20 21 54

POTRACE_BMP_SVG_batch_002_2017_12_05_09_21.zip

enzyme69 commented 6 years ago
import glob
import os

print("hello")

# for sketchfab.timeframe

path = '/Users/jimmygunawan/Desktop/metaball_BMP/*.bmp'

TextList = []

# (py35) ~/potrace potrace /Users/jimmygunawan/Desktop/metaball_BMP/0001.bmp -s -o 0001.svg

for item in sorted(glob.glob((path))):
    print(item)
    #print( str(duration), os.path.basename(item) )

    fullname = os.path.basename(item)
    nameonly = fullname.split('.')[0]
    #TextList.append(str(dur) + " " + os.path.basename(item))
    #TextList.append(nameonly)
    TextList.append("/Users/jimmygunawan/potrace/potrace {name}.bmp -s -o {name}.svg".format(name=nameonly))