Various Python integration changes #77

Closed
Brecht Van Lommel wants to merge 6 commits from brecht:hydra-python-changes into hydra-render

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

6 Commits

Author SHA1 Message Date
Brecht Van Lommel 29c7b48002 Fix broken final render, mistake in untangling changes from other PR 2023-07-26 15:36:24 +02:00
Brecht Van Lommel dbf81bb93a Refactor: remove need to use .as_pointer() for _bpy_hydra
And remove some unnecessary includes.
2023-07-25 19:57:50 +02:00
Brecht Van Lommel 47dfb1827a Move HydraRenderEngine to bpy.types, update Python API docs
* Makes it more consistent with other types that can be subclassed.
* Give bl_ prefix to delegate_id.
* Lazily import _bpy_hydra.
* Tweaks to API docs example.
2023-07-25 19:57:50 +02:00
Brecht Van Lommel fb3ae7d1f8 Replace custom register plugins API function by pxr API
Not sure why this was needed.
2023-07-25 19:57:50 +02:00
Brecht Van Lommel 65ac145081 Initialize PXR_MTLX_STDLIB_SEARCH_PATHS in same place as MATERIALX_SEARCH_PATH
More consistent, and avoids paths being added multiple times if multiple
hydra render engines are registered.
2023-07-25 19:57:17 +02:00
Brecht Van Lommel 1f9d54dba1 Make update happen at appropriate time, by binding GPU context
Otherwise the UI draw lock functionality does not work. Also renames
engine_sync to engine_update for consistency.
2023-07-25 19:50:11 +02:00