2021-07-24 09:03:44 -07:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import blendparse
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
try:
|
|
|
|
blendfile = sys.argv[1]
|
|
|
|
except IndexError:
|
|
|
|
print("Usage: ./test.py <path to .blend>")
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
with blendparse.Blendfile(blendfile) as blend:
|
2021-07-25 14:04:47 -07:00
|
|
|
print(blend)
|
2021-07-24 09:03:44 -07:00
|
|
|
results = [block() for block in blend.get_blocks("SC").values()]
|
|
|
|
for structure in results[0]:
|
2021-07-25 14:04:47 -07:00
|
|
|
print(structure)
|