This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/OP-3819_Move-subset-name-function…
…ality
- Loading branch information
Showing
256 changed files
with
36,616 additions
and
1,436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
def add_implementation_envs(env, _app): | ||
"""Modify environments to contain all required for implementation.""" | ||
defaults = { | ||
"OPENPYPE_LOG_NO_COLORS": "True", | ||
"WEBSOCKET_URL": "ws://localhost:8097/ws/" | ||
} | ||
for key, value in defaults.items(): | ||
if not env.get(key): | ||
env[key] = value | ||
from .module import AfterEffectsModule | ||
|
||
|
||
__all__ = ( | ||
"AfterEffectsModule", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from openpype.modules import OpenPypeModule | ||
from openpype.modules.interfaces import IHostModule | ||
|
||
|
||
class AfterEffectsModule(OpenPypeModule, IHostModule): | ||
name = "aftereffects" | ||
host_name = "aftereffects" | ||
|
||
def initialize(self, module_settings): | ||
self.enabled = True | ||
|
||
def add_implementation_envs(self, env, _app): | ||
"""Modify environments to contain all required for implementation.""" | ||
defaults = { | ||
"OPENPYPE_LOG_NO_COLORS": "True", | ||
"WEBSOCKET_URL": "ws://localhost:8097/ws/" | ||
} | ||
for key, value in defaults.items(): | ||
if not env.get(key): | ||
env[key] = value | ||
|
||
def get_workfile_extensions(self): | ||
return [".aep"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,6 @@ | ||
import os | ||
from .module import BlenderModule | ||
|
||
|
||
def add_implementation_envs(env, _app): | ||
"""Modify environments to contain all required for implementation.""" | ||
# Prepare path to implementation script | ||
implementation_user_script_path = os.path.join( | ||
os.path.dirname(os.path.abspath(__file__)), | ||
"blender_addon" | ||
) | ||
|
||
# Add blender implementation script path to PYTHONPATH | ||
python_path = env.get("PYTHONPATH") or "" | ||
python_path_parts = [ | ||
path | ||
for path in python_path.split(os.pathsep) | ||
if path | ||
] | ||
python_path_parts.insert(0, implementation_user_script_path) | ||
env["PYTHONPATH"] = os.pathsep.join(python_path_parts) | ||
|
||
# Modify Blender user scripts path | ||
previous_user_scripts = set() | ||
# Implementation path is added to set for easier paths check inside loops | ||
# - will be removed at the end | ||
previous_user_scripts.add(implementation_user_script_path) | ||
|
||
openpype_blender_user_scripts = ( | ||
env.get("OPENPYPE_BLENDER_USER_SCRIPTS") or "" | ||
) | ||
for path in openpype_blender_user_scripts.split(os.pathsep): | ||
if path: | ||
previous_user_scripts.add(os.path.normpath(path)) | ||
|
||
blender_user_scripts = env.get("BLENDER_USER_SCRIPTS") or "" | ||
for path in blender_user_scripts.split(os.pathsep): | ||
if path: | ||
previous_user_scripts.add(os.path.normpath(path)) | ||
|
||
# Remove implementation path from user script paths as is set to | ||
# `BLENDER_USER_SCRIPTS` | ||
previous_user_scripts.remove(implementation_user_script_path) | ||
env["BLENDER_USER_SCRIPTS"] = implementation_user_script_path | ||
|
||
# Set custom user scripts env | ||
env["OPENPYPE_BLENDER_USER_SCRIPTS"] = os.pathsep.join( | ||
previous_user_scripts | ||
) | ||
|
||
# Define Qt binding if not defined | ||
if not env.get("QT_PREFERRED_BINDING"): | ||
env["QT_PREFERRED_BINDING"] = "PySide2" | ||
__all__ = ( | ||
"BlenderModule", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.