Skip to content

Add Blender addon - #3

Draft
n-jay wants to merge 2 commits into
AcademySoftwareFoundation:mainfrom
n-jay:blender-addon
Draft

Add Blender addon#3
n-jay wants to merge 2 commits into
AcademySoftwareFoundation:mainfrom
n-jay:blender-addon

Conversation

@n-jay

@n-jay n-jay commented Mar 29, 2026

Copy link
Copy Markdown

This pull request introduces the initial implementation of the OpenCue Blender addon, providing a standalone job submission interface from within Blender.

Addon Core Functionality:

  • Added __init__.py implementing the Blender addon, including UI panels, operator for job submission, and addon preferences. This file also handles registration, property definitions, and triggers dependency installation on first use.
  • Added Submission.py to encapsulate the logic for building and submitting render jobs to OpenCue using the PyOutline API, including command construction and layer setup.

Dependency Management:

  • Added Setup.py to manage installation of required Python dependencies into Blender's environment, handling cross-platform Python executable discovery and pip installation.
  • Added requirements.txt specifying all necessary Python packages for the addon to function, including OpenCue and supporting libraries.

Documentation:

  • Added a README.md describing the purpose, structure, and contents of the OpenCue Blender addon directory.

Assisted-by: VSCode Copilot / Gemini 3.1 Pro

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No requirements.txt file for the plugin. It should be run in a environment that already has the relevant opencue dependencies.

@n-jay n-jay Mar 30, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The requirements.txt is for Blender's built-in Python interpreter, which is separate from the host machine's Python installation.
https://docs.blender.org/api/current/info_overview.html

Comment on lines +79 to +84
print("\n----- Installing External Dependencies -----")
subprocess.call([python_exe, "-m", "ensurepip"])
subprocess.call([python_exe, "-m", "pip", "install", "--upgrade", "pip"])
# install required external packages
subprocess.call([python_exe, "-m", "pip", "install", "-r", requirements, "-t", blender_dependencies_path])
print("\n----- External Dependencies Installed Successfully -----")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. No dependency installs on plugin init.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Referred here: #3 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants