Hello!
Being a tad impatient I’m toying with the idea of writing an “alembic reader”.
The official python bindings haven’t been released yet (http://code.google.com/p/alembic/), so I’m planning to hack it with the h5py module (http://code.google.com/p/h5py/). Hdf5 is the backbone of alembic and I’ve had success writing a custom cache format for Maya => Houdini using this before alembic came out.
So…
My question…
Is it at all possible to import modules outside of blender’s python?
I’ve tried compiling python 3.2, numpy and h5py and adding it to sys.path with no success. I get:
>>> import h5py
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "/usr/local/python3.2/lib/python3.2/site-packages/h5py/__init__.py", line 1, in <module>
from h5py import _errors
ImportError: cannot import name _errors
The above error doesn’t appear in the compiled python3.2 shell.
I’ve tried copying the modules into blenders site-packages with the same result.
Does anyone have any experience with adding a 3rd party module?
Is it possible to run the blender python outside of blender?
Any hints, tips, pointers or solutions are greatly appreciated.
Thanks,
-Daniel