mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #22 from pypeclub/resolve-rebrand
Resolve: rebranding to OpenPype
This commit is contained in:
commit
18270d9349
15 changed files with 39 additions and 39 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#### Basic setup
|
||||
|
||||
- Install [latest DaVinci Resolve](https://sw.blackmagicdesign.com/DaVinciResolve/v16.2.8/DaVinci_Resolve_Studio_16.2.8_Windows.zip?Key-Pair-Id=APKAJTKA3ZJMJRQITVEA&Signature=EcFuwQFKHZIBu2zDj5LTCQaQDXcKOjhZY7Fs07WGw24xdDqfwuALOyKu+EVzDX2Tik0cWDunYyV0r7hzp+mHmczp9XP4YaQXHdyhD/2BGWDgiMsiTQbNkBgbfy5MsAMFY8FHCl724Rxm8ke1foWeUVyt/Cdkil+ay+9sL72yFhaSV16sncko1jCIlCZeMkHhbzqPwyRuqLGmxmp8ey9KgBhI3wGFFPN201VMaV+RHrpX+KAfaR6p6dwo3FrPbRHK9TvMI1RA/1lJ3fVtrkDW69LImIKAWmIxgcStUxR9/taqLOD66FNiflHd1tufHv3FBa9iYQsjb3VLMPx7OCwLyg==&Expires=1608308139)
|
||||
- add absolute path to ffmpeg into pype settings
|
||||
- add absolute path to ffmpeg into openpype settings
|
||||

|
||||
- install Python 3.6 into `%LOCALAPPDATA%/Programs/Python/Python36` (only respected path by Resolve)
|
||||
- install OpenTimelineIO for 3.6 `%LOCALAPPDATA%\Programs\Python\Python36\python.exe -m pip install git+https://github.com/PixarAnimationStudios/OpenTimelineIO.git@5aa24fbe89d615448876948fe4b4900455c9a3e8` and move builded files from `%LOCALAPPDATA%/Programs/Python/Python36/Lib/site-packages/opentimelineio/cxx-libs/bin and lib` to `%LOCALAPPDATA%/Programs/Python/Python36/Lib/site-packages/opentimelineio/`. I was building it on Win10 machine with Visual Studio Community 2019 and
|
||||
|
|
@ -16,11 +16,11 @@ This is how it looks on my testing project timeline
|
|||

|
||||
Notice I had renamed tracks to `main` (holding metadata markers) and `review` used for generating review data with ffmpeg confersion to jpg sequence.
|
||||
|
||||
1. you need to start Pype menu from Resolve/EditTab/Menu/Workspace/Scripts/**PYPE_MENU**
|
||||
1. you need to start OpenPype menu from Resolve/EditTab/Menu/Workspace/Scripts/**__OpenPype_Menu__**
|
||||
2. then select any clips in `main` track and change their color to `Chocolate`
|
||||
3. in Pype Menu select `Create`
|
||||
3. in OpenPype Menu select `Create`
|
||||
4. in Creator select `Create Publishable Clip [New]` (temporary name)
|
||||
5. set `Rename clips` to True, Master Track to `main` and Use review track to `review` as in picture
|
||||

|
||||
6. after you hit `ok` all clips are colored to `ping` and marked with pype metadata tag
|
||||
7. git `Publish` on pype menu and see that all had been collected correctly. That is the last step for now as rest is Work in progress. Next steps will follow.
|
||||
6. after you hit `ok` all clips are colored to `ping` and marked with openpype metadata tag
|
||||
7. git `Publish` on openpype menu and see that all had been collected correctly. That is the last step for now as rest is Work in progress. Next steps will follow.
|
||||
|
|
|
|||
|
|
@ -16,24 +16,24 @@ self = sys.modules[__name__]
|
|||
self.project_manager = None
|
||||
self.media_storage = None
|
||||
|
||||
# Pype sequencial rename variables
|
||||
# OpenPype sequencial rename variables
|
||||
self.rename_index = 0
|
||||
self.rename_add = 0
|
||||
|
||||
self.publish_clip_color = "Pink"
|
||||
self.pype_marker_workflow = True
|
||||
|
||||
# Pype compound clip workflow variable
|
||||
# OpenPype compound clip workflow variable
|
||||
self.pype_tag_name = "VFX Notes"
|
||||
|
||||
# Pype marker workflow variables
|
||||
self.pype_marker_name = "PYPEDATA"
|
||||
# OpenPype marker workflow variables
|
||||
self.pype_marker_name = "OpenPypeData"
|
||||
self.pype_marker_duration = 1
|
||||
self.pype_marker_color = "Mint"
|
||||
self.temp_marker_frame = None
|
||||
|
||||
# Pype default timeline
|
||||
self.pype_timeline_name = "PypeTimeline"
|
||||
# OpenPype default timeline
|
||||
self.pype_timeline_name = "OpenPypeTimeline"
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
|
|
@ -360,13 +360,13 @@ def get_pype_timeline_item_by_name(name: str) -> object:
|
|||
|
||||
def get_timeline_item_pype_tag(timeline_item):
|
||||
"""
|
||||
Get pype track item tag created by creator or loader plugin.
|
||||
Get openpype track item tag created by creator or loader plugin.
|
||||
|
||||
Attributes:
|
||||
trackItem (resolve.TimelineItem): resolve object
|
||||
|
||||
Returns:
|
||||
dict: pype tag data
|
||||
dict: openpype tag data
|
||||
"""
|
||||
return_tag = None
|
||||
|
||||
|
|
@ -389,7 +389,7 @@ def get_timeline_item_pype_tag(timeline_item):
|
|||
|
||||
def set_timeline_item_pype_tag(timeline_item, data=None):
|
||||
"""
|
||||
Set pype track item tag to input timeline_item.
|
||||
Set openpype track item tag to input timeline_item.
|
||||
|
||||
Attributes:
|
||||
trackItem (resolve.TimelineItem): resolve api object
|
||||
|
|
@ -399,7 +399,7 @@ def set_timeline_item_pype_tag(timeline_item, data=None):
|
|||
"""
|
||||
data = data or dict()
|
||||
|
||||
# get available pype tag if any
|
||||
# get available openpype tag if any
|
||||
tag_data = get_timeline_item_pype_tag(timeline_item)
|
||||
|
||||
if self.pype_marker_workflow:
|
||||
|
|
@ -418,7 +418,7 @@ def set_timeline_item_pype_tag(timeline_item, data=None):
|
|||
self.pype_tag_name, json.dumps(tag_data))
|
||||
else:
|
||||
tag_data = data
|
||||
# if pype tag available then update with input data
|
||||
# if openpype tag available then update with input data
|
||||
# add it to the input track item
|
||||
timeline_item.SetMetadata(self.pype_tag_name, json.dumps(tag_data))
|
||||
|
||||
|
|
@ -672,7 +672,7 @@ def _validate_tc(x):
|
|||
|
||||
def get_pype_clip_metadata(clip):
|
||||
"""
|
||||
Get pype metadata created by creator plugin
|
||||
Get openpype metadata created by creator plugin
|
||||
|
||||
Attributes:
|
||||
clip (resolve.TimelineItem): resolve's object
|
||||
|
|
|
|||
|
|
@ -44,11 +44,11 @@ class Spacer(QtWidgets.QWidget):
|
|||
self.setLayout(layout)
|
||||
|
||||
|
||||
class PypeMenu(QtWidgets.QWidget):
|
||||
class OpenPypeMenu(QtWidgets.QWidget):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
|
||||
self.setObjectName("PypeMenu")
|
||||
self.setObjectName("OpenPypeMenu")
|
||||
|
||||
self.setWindowFlags(
|
||||
QtCore.Qt.Window
|
||||
|
|
@ -58,7 +58,7 @@ class PypeMenu(QtWidgets.QWidget):
|
|||
| QtCore.Qt.WindowStaysOnTopHint
|
||||
)
|
||||
|
||||
self.setWindowTitle("Pype")
|
||||
self.setWindowTitle("OpenPype")
|
||||
workfiles_btn = QtWidgets.QPushButton("Workfiles", self)
|
||||
create_btn = QtWidgets.QPushButton("Create", self)
|
||||
publish_btn = QtWidgets.QPushButton("Publish", self)
|
||||
|
|
@ -144,7 +144,7 @@ class PypeMenu(QtWidgets.QWidget):
|
|||
def launch_pype_menu():
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
|
||||
pype_menu = PypeMenu()
|
||||
pype_menu = OpenPypeMenu()
|
||||
|
||||
stylesheet = load_stylesheet()
|
||||
pype_menu.setStyleSheet(stylesheet)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ QLineEdit {
|
|||
qproperty-alignment: AlignCenter;
|
||||
}
|
||||
|
||||
#PypeMenu {
|
||||
#OpenPypeMenu {
|
||||
border: 1px solid #fef9ef;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ def ls():
|
|||
|
||||
|
||||
def parse_container(timeline_item, validate=True):
|
||||
"""Return container data from timeline_item's pype tag.
|
||||
"""Return container data from timeline_item's openpype tag.
|
||||
|
||||
Args:
|
||||
timeline_item (hiero.core.TrackItem): A containerised track item.
|
||||
|
|
@ -187,7 +187,7 @@ def parse_container(timeline_item, validate=True):
|
|||
|
||||
|
||||
def update_container(timeline_item, data=None):
|
||||
"""Update container data to input timeline_item's pype tag.
|
||||
"""Update container data to input timeline_item's openpype tag.
|
||||
|
||||
Args:
|
||||
timeline_item (hiero.core.TrackItem): A containerised track item.
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class CreatorWidget(QtWidgets.QDialog):
|
|||
| QtCore.Qt.WindowCloseButtonHint
|
||||
| QtCore.Qt.WindowStaysOnTopHint
|
||||
)
|
||||
self.setWindowTitle(name or "Pype Creator Input")
|
||||
self.setWindowTitle(name or "OpenPype Creator Input")
|
||||
self.resize(500, 700)
|
||||
|
||||
# Where inputs and labels are set
|
||||
|
|
@ -527,7 +527,7 @@ class PublishClip:
|
|||
kwargs (optional): additional data needed for rename=True (presets)
|
||||
|
||||
Returns:
|
||||
hiero.core.TrackItem: hiero track item object with pype tag
|
||||
hiero.core.TrackItem: hiero track item object with openpype tag
|
||||
"""
|
||||
vertical_clip_match = dict()
|
||||
tag_data = dict()
|
||||
|
|
@ -623,7 +623,7 @@ class PublishClip:
|
|||
"track_data": self.timeline_item_data["track"]
|
||||
})
|
||||
|
||||
# create pype tag on timeline_item and add data
|
||||
# create openpype tag on timeline_item and add data
|
||||
lib.imprint(self.timeline_item, self.tag_data)
|
||||
|
||||
return self.timeline_item
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
# TODO: convert this script to be usable with PYPE
|
||||
# TODO: convert this script to be usable with OpenPype
|
||||
"""
|
||||
Example DaVinci Resolve script:
|
||||
Load a still from DRX file, apply the still to all clips in all timelines.
|
||||
|
|
|
|||
|
|
@ -146,4 +146,4 @@ def setup(env=None):
|
|||
# synchronize resolve utility scripts
|
||||
_sync_utility_scripts(env)
|
||||
|
||||
log.info("Resolve Pype wrapper has been installed")
|
||||
log.info("Resolve OpenPype wrapper has been installed")
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ class ResolvePrelaunch(PreLaunchHook):
|
|||
app_groups = ["resolve"]
|
||||
|
||||
def execute(self):
|
||||
# TODO: add OTIO installation from `pype/requirements.py`
|
||||
# TODO: add OTIO installation from `openpype/requirements.py`
|
||||
# making sure pyton 3.6 is installed at provided path
|
||||
py36_dir = os.path.normpath(
|
||||
self.launch_context.env.get("PYTHON36_RESOLVE", ""))
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class CreateShotClip(resolve.Creator):
|
|||
defaults = ["Main"]
|
||||
|
||||
gui_tracks = resolve.get_video_track_names()
|
||||
gui_name = "Pype publish attributes creator"
|
||||
gui_name = "OpenPype publish attributes creator"
|
||||
gui_info = "Define sequential rename and fill hierarchy data."
|
||||
gui_inputs = {
|
||||
"renameHierarchy": {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class CollectInstances(pyblish.api.ContextPlugin):
|
|||
data = dict()
|
||||
timeline_item = timeline_item_data["clip"]["item"]
|
||||
|
||||
# get pype tag data
|
||||
# get openpype tag data
|
||||
tag_data = resolve.get_timeline_item_pype_tag(timeline_item)
|
||||
self.log.debug(f"__ tag_data: {pformat(tag_data)}")
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import pype
|
|||
|
||||
def main(env):
|
||||
import pype.hosts.resolve as bmdvr
|
||||
# Registers pype's Global pyblish plugins
|
||||
# Registers openpype's Global pyblish plugins
|
||||
pype.install()
|
||||
bmdvr.setup(env)
|
||||
|
||||
|
|
@ -10,10 +10,10 @@ log = Logger().get_logger(__name__)
|
|||
|
||||
def main(env):
|
||||
import pype.hosts.resolve as bmdvr
|
||||
# Registers pype's Global pyblish plugins
|
||||
# Registers openpype's Global pyblish plugins
|
||||
pype.install()
|
||||
|
||||
# activate resolve from pype
|
||||
# activate resolve from openpype
|
||||
avalon.install(bmdvr)
|
||||
|
||||
log.info(f"Avalon registred hosts: {avalon.registered_host()}")
|
||||
|
|
@ -14,9 +14,9 @@ class ThisTestGUI(TestGUI):
|
|||
|
||||
def __init__(self):
|
||||
super(ThisTestGUI, self).__init__()
|
||||
# Registers pype's Global pyblish plugins
|
||||
# Registers openpype's Global pyblish plugins
|
||||
pype.install()
|
||||
# activate resolve from pype
|
||||
# activate resolve from openpype
|
||||
avalon.install(bmdvr)
|
||||
|
||||
def _open_dir_button_pressed(self, event):
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ class ThisTestGUI(TestGUI):
|
|||
|
||||
def __init__(self):
|
||||
super(ThisTestGUI, self).__init__()
|
||||
# Registers pype's Global pyblish plugins
|
||||
# Registers openpype's Global pyblish plugins
|
||||
pype.install()
|
||||
# activate resolve from pype
|
||||
# activate resolve from openpype
|
||||
avalon.install(bmdvr)
|
||||
|
||||
def _open_dir_button_pressed(self, event):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue