Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyopenvdb available for import in 4.4 #717

Open
BradyAJohnston opened this issue Jan 23, 2025 · 0 comments
Open

pyopenvdb available for import in 4.4 #717

BradyAJohnston opened this issue Jan 23, 2025 · 0 comments
Labels
enhancement New feature or request package-issue Issues that are reliant upon updates from the imported python packages.

Comments

@BradyAJohnston
Copy link
Owner

Mostly for testing, but also for general scripting with Blender 4.4, internal modules like pyopenvdb which wasn't available from pypi on on platforms, will now be available internally whens scripting with the bpy python package.

Should help fix errors with running tests. Will need to just add bpy.utils.expose_bundled_modules() before importing.

import bpy

# Add Blender bundled VFX libraries to sys.path.
bpy.utils.expose_bundled_modules()

# Import the library you need.
import pxr
import MaterialX
import OpenImageIO
import PyOpenColorIO
import pyopenvdb

https://developer.blender.org/docs/release_notes/4.4/python_api/#blender-as-a-python-module

@BradyAJohnston BradyAJohnston added enhancement New feature or request package-issue Issues that are reliant upon updates from the imported python packages. labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request package-issue Issues that are reliant upon updates from the imported python packages.
Projects
None yet
Development

No branches or pull requests

1 participant