This repository was archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
Enhancement/nuke openrv integration #5178
Closed
ccaillot
wants to merge
189
commits into
ynput:develop
from
quadproduction:enhancement/nuke-openrv-integration
Closed
Changes from all commits
Commits
Show all changes
189 commits
Select commit
Hold shift + click to select a range
ee6377b
add automatic daily sync with fork
ClementHector e8761f1
Add patch zip build on tag
ClementHector da1a8ee
Refacto bug report
ClementHector 064fb0f
deleted required
louparis 6f93aba
Update bug_report.yml
louparis b0d5171
added required
louparis 9db24dd
Update bug_report.yml
louparis 5d3fc6c
validation
louparis 4ee7cc7
Update bug_report.yml
louparis b894a5c
Update bug_report.yml
louparis f787be1
Update bug_report.yml
louparis 394c7a4
title
louparis 6390c6d
Update bug_report.yml
louparis b24caeb
titles
louparis 1799079
Update bug_report.yml
louparis 97982ea
Markdown
louparis 11804c2
validation
louparis 25ae727
Update patch_build.yml
ClementHector e7f12ce
Update patch_build.yml
ClementHector 6569435
Update patch_build.yml
ClementHector 96ccff4
Update patch_build.yml
ClementHector cc6b8c1
Update patch_build.yml
ClementHector c80e0bc
Update patch_build.yml
ClementHector 0ea59b5
Update patch_build.yml
ClementHector b941086
Update patch_build.yml
ClementHector b27c327
Update patch_build.yml
ClementHector a758df8
Update patch_build.yml
ClementHector 19031a6
Update patch_build.yml
ClementHector 0119489
Update patch_build.yml
ClementHector b2a744b
Update sync_fork.yml
ClementHector 7c93048
Update patch_build.yml
ClementHector 8d4801d
Update patch_build.yml
ClementHector b7fec76
Update patch_build.yml
ClementHector 613cea8
Update patch_build.yml
ClementHector 9670a51
Update patch_build.yml
ClementHector 35c76fd
Update patch_build.yml
ClementHector b81ee58
update path_build
ClementHector 090f033
update path_build
ClementHector 5c1de79
update path_build
ClementHector 8d9d5af
update path_build
ClementHector c05bbc0
update path_build
ClementHector 47564fa
update path_build
ClementHector 37f67f0
update path_build
ClementHector befab3c
update path_build
ClementHector 73bec25
update path_build
ClementHector 84ca921
update path_build
ClementHector 41c3663
update path_build
ClementHector f2741c4
update path_build
ClementHector 6e41b3a
update path_build
ClementHector 73abfcf
update path_build
ClementHector 61ab8d4
update path_build
ClementHector f8d178b
update path_build
ClementHector 8328445
update path_build
ClementHector 960de54
update path_build
ClementHector 652164c
update path_build
ClementHector 31b51ec
update path_build
ClementHector 3ea4f00
update path_build
ClementHector 5c51705
update path_build
ClementHector 5553947
update path_build
ClementHector 2f70966
update path_build
ClementHector eac8ee4
update path_build
ClementHector 9ecf811
update path_build
ClementHector 97c67f3
update path_build
ClementHector 0ddf8c0
update path_build
ClementHector 7fbffae
update path_build
ClementHector ea2a99d
update path_build
ClementHector a77ceed
update path_build
ClementHector b254b16
update path_build
ClementHector 53ba56c
update path_build
ClementHector c3b023c
update path_build
ClementHector 545cebb
update path_build
ClementHector 922e25e
update path_build
ClementHector 6bfc34f
update path_build
ClementHector 2c9f751
update path_build
ClementHector fdb163c
update path_build
ClementHector 8d524d5
+Linux Rocky
louparis 6001287
openrv integration
ddesmond d8fd28f
Code cosmetics
BigRoy f0c927d
Code cosmetics + cleanup
BigRoy 2272409
Re-use method from host
BigRoy 28aa78c
Remove unused function which likely came from Fusion or Clarisse inte…
BigRoy 977a948
Cleanup comments
BigRoy b3c06dd
Cosmetics
BigRoy 6ffbb39
Fix missing import, not sure if there was a reason it had no top import
BigRoy f1100f4
Fix typo
BigRoy 3c05e19
Shush hound
BigRoy b56b205
Remove unused `show_env`
BigRoy c3a7042
Cleanup code
BigRoy 3bc1dc8
Remove debug files
BigRoy c6f540a
More cleanup
BigRoy e8960bf
Return if there's no current workfile
BigRoy 6d4813e
Cosmetics
BigRoy 2fa2219
Cosmetics + Shush hound
BigRoy 9879637
Remove unused function
BigRoy a88d964
Cosmetics
BigRoy 5d62434
added missing schema
ddesmond cfb625e
added missing schema
ddesmond 943ae99
Cosmetics
BigRoy 810cc2a
Add `openrv` to hosts enum since it registers a host
BigRoy 89c313d
Use FusionPreLaunchOCIO hook as global hook for re-use with `openrv`
BigRoy a52c9b9
Remove pre config hook in favor of global OCIO hook
BigRoy 65da2fc
Cleanup code
BigRoy 88ffc88
Don't add to sys.path, don't clear PYTHONPATH
BigRoy fb50a97
More specific imports
BigRoy b6fb7d8
Clean up imports
BigRoy 4ca5ae9
proper menu file
ddesmond 76c244a
Cleanup file again.
BigRoy e20864a
Hound
BigRoy 5b89664
Match menu labels of other integrations + clarify arguments to `init`
BigRoy 5872c9d
Shush hound
BigRoy 948539b
Remove unused variable
BigRoy 4e11c00
Hound
BigRoy 1ae8b1e
Update menu name
BigRoy 674d41e
Fix workfile saving with correct extension
BigRoy 13ba182
Hack: For now "auto-deploy" and load packages
BigRoy b643c81
Update python files on deployment
BigRoy 2bdbeb0
Avoid errors when no currently loaded content
BigRoy 1b5b8d1
No need for default environment overrides
BigRoy b824097
Shush hound
BigRoy 71eea0e
Fix line length
BigRoy 5546c15
Shush hound
BigRoy ac00fad
Shush hound
BigRoy 0a9dd73
Shush hound
BigRoy a01a455
Shush hound
BigRoy 7e1b260
Cleanup
BigRoy 0ec8022
Fix line length
BigRoy 4616bdc
Hound
BigRoy 1a01d36
Cleanup
BigRoy aeeddb2
Comment out unused lines which end up doing nothing
BigRoy 067cc9f
Returned value was unused
BigRoy cf2b7c8
Comment import + add todo
BigRoy c26ac64
Hound
BigRoy 8f10cd9
Cleanup cycle annotate frames logic
BigRoy d44c16c
Comment import + add todo
BigRoy 3bb5e33
Comment to explain we require the sorting
BigRoy 769c1b4
Don't pass emtpy list as parent
BigRoy 4458099
Create dock widget only on first 'review' click and toggle view other…
BigRoy 0be453e
Parent the OpenPype tools to RV window
BigRoy 6bada24
Cosmetics
BigRoy b4ced05
Cleanup imports
BigRoy 47dbd2d
Do nothing if there are no annotations
BigRoy 466e337
Remove debugging method
BigRoy a8aa839
Always return the session window live because there can be multiple s…
BigRoy f22c483
Add todo
BigRoy 7364ec7
Only install once, not per session window
BigRoy a79aa3a
Remove unused import
BigRoy 1c9f92d
Works fine for multiple session windows since it initializes a class …
BigRoy 08adb99
Do not force show the RV console
BigRoy f3f0f0d
Support loading image sequences
BigRoy ce4f24d
Allow any mov or mp4 extension
BigRoy 255e9a3
Allow loading more image extensions
BigRoy 1148c90
Add temporary hack to avoid clash with `PyOpenColorIO` in OpenPype
BigRoy 3cbbaf4
Add todo
BigRoy 938caeb
Do not force show review tool on launch
BigRoy 9c7048e
Simplify lib clash workaround
BigRoy 87694ed
Add init sorted order to make "Review" the last entry in the menu.
BigRoy 0c47b98
Add OpenPype script editor (python interpreter widget) package to hel…
BigRoy b13a8e0
Tweak organization
BigRoy dd52bb4
Remove forcing of asset fps/frames + support removal of containers
BigRoy 3a75db6
Fix RV Project Settings + remove unused redundant settings
BigRoy 46e9f50
Use OCIO schemas like other hosts
BigRoy 4574260
Allow import even when OpenPype hasn't initialized/installed
BigRoy 59b5c12
Fix typo
BigRoy d5e8a99
Add checkbox active state to "review" menu entry
BigRoy ae88ed3
Add separators to menu
BigRoy b7892d7
Ignore namespace attribute if it does not exist
BigRoy 8cf207a
Cleanup, move import to top + improve docstring
BigRoy ada3a5b
Implement draft functionality to set OCIO colorspace on file load and…
BigRoy 1641de4
Add active state to the menu
BigRoy 4be4bf1
Remove redundant check, it's already checked in other if statement
BigRoy c79ef8f
Hound
BigRoy 39be184
Add support for open last workfile
BigRoy d895151
Refactor to using new publisher
BigRoy 5288bd2
Expose library loader
BigRoy 4241a10
Add todo
BigRoy 1053079
Define subset name correctly using templates
BigRoy 46934bf
Nicer label + docstring
BigRoy 7316b97
Add comment about a workaround
BigRoy 3c0023f
Cleanup `reset_frame_range` logic. Remove old `edit_in` and `edit_out`
BigRoy ea569a1
Remove redundant adding of vendor/python
BigRoy 3789c95
Preserve predefined RV_SUPPORT_PATH paths
BigRoy d8addda
Install OpenPype packages to temp folder on launch + preserve predefi…
BigRoy cf41442
Remove unused import
BigRoy d39f5c5
Force `rvpkg` just to be sure it's not trying to be used interactively
BigRoy 73b785e
Add OpenRv Nuke Integration
54708ae
Fix PEP8 issues
f7e40ff
fix ftrack ignore sync filter (#5176)
kaamaurice 9590d46
Rebase develop branch
809d5c2
Merge upstream/develop into enhancement/nuke-openrv-integration
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,89 @@ | ||
| { | ||
| "categories": [ | ||
| { | ||
| "title": "## 🚀 Features", | ||
| "labels": ["feature"] | ||
| }, | ||
| { | ||
| "title": "## 🐛 Fixes", | ||
| "labels": ["fix"] | ||
| }, | ||
| { | ||
| "key": "tests", | ||
| "title": "## 🧪 Tests", | ||
| "labels": ["test"] | ||
| }, | ||
| { | ||
| "title": "## 🧪 Tests and some 🪄 Magic", | ||
| "labels": ["test", "magic"], | ||
| "exclude_labels": ["no-magic"], | ||
| "exhaustive": true, | ||
| "exhaustive_rules": "false", | ||
| "empty_content": "- no matching PRs", | ||
| "rules": [ | ||
| { | ||
| "pattern": "open", | ||
| "on_property": "status", | ||
| "flags": "gu" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
|
|
||
| // "ignore_labels": [ | ||
| // "ignore" | ||
| // ], | ||
| "sort": { | ||
| "order": "ASC", | ||
| "on_property": "mergedAt" | ||
| }, | ||
| "template": "${{UNCATEGORIZED}}", | ||
| "pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}", | ||
| "empty_template": "- no changes", | ||
| "label_extractor": [ | ||
| { | ||
| "pattern": "(.) (.+)", | ||
| "target": "$1", | ||
| "flags": "gu" | ||
| }, | ||
| { | ||
| "pattern": "\\[Issue\\]", | ||
| "on_property": "title", | ||
| "method": "match" | ||
| } | ||
| ], | ||
| // "duplicate_filter": { | ||
| // "pattern": "\\[ABC-....\\]", | ||
| // "on_property": "title", | ||
| // "method": "match" | ||
| // }, | ||
| // "reference": { | ||
| // "pattern": ".*\\ \\#(.).*", | ||
| // "on_property": "body", | ||
| // "method": "replace", | ||
| // "target": "$1" | ||
| // }, | ||
| // "transformers": [ | ||
| // { | ||
| // "pattern": "[\\-\\*] (\\[(...|TEST|CI|SKIP)\\])( )?(.+?)\n(.+?[\\-\\*] )(.+)", | ||
| // "target": "- $4\n - $6" | ||
| // } | ||
| // ], | ||
| // "trim_values": false, | ||
| // "max_tags_to_fetch": 200, | ||
| // "max_pull_requests": 200, | ||
| // "max_back_track_time_days": 365, | ||
| // "exclude_merge_branches": [ | ||
| // "Owner/qa" | ||
| // ], | ||
| "tag_resolver": { | ||
| "method": "semver", | ||
| "filter": { | ||
| "pattern": "api-(.+)", | ||
| "flags": "gu" | ||
| } | ||
| }, | ||
| // "base_branches": [ | ||
| // "dev" | ||
| // ] | ||
| } |
This file contains hidden or 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,62 @@ | ||
| name: 📦 Build Zip Patch | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - '*.*.*' | ||
| - '*.*.*-*' | ||
| - 'CI/*.*.*-*' | ||
| workflow_dispatch: | ||
| inputs: | ||
| name: | ||
| type: choice | ||
| description: Who to greet | ||
| options: | ||
| - monalisa | ||
| - cschleiden | ||
| message: | ||
| required: true | ||
| use-emoji: | ||
| type: boolean | ||
| description: Include emojis | ||
| environment: | ||
| type: environment | ||
| jobs: | ||
| build-zip-patch: | ||
| runs-on: [self-hosted, ubuntu] | ||
|
|
||
| steps: | ||
|
|
||
| - name: 🚛 Checkout Code | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| # - name: "📝 Build Changelog" | ||
| # id: changelog | ||
| # uses: mikepenz/release-changelog-builder-action@v3.4.0 | ||
| # with: | ||
| # # fromTag: "3.15.6" | ||
| # # toTag: "3.15.8" | ||
| # commitMode: true | ||
| # failOnError: true | ||
| # configuration: "configuration.json" | ||
| # env: | ||
| # GITHUB_TOKEN: ${{ secrets.QUAD_PUBLIC_GITHUB_TOKEN }} | ||
|
|
||
| - name: 🐍 Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: 3.9 | ||
|
|
||
| - name: 🧵 Install Requirements | ||
| run: ./tools/create_env.sh && ./tools/fetch_thirdparty_libs.sh | ||
|
|
||
| - name: 🔨 Build | ||
| run: tools/create_zip.sh --path /prod/softprod/apps/openpype/REPOSITORY/ | ||
|
|
||
| # - name: 💬 Message to Release chat | ||
| # uses: julb/action-post-googlechat-message@v1 | ||
| # with: | ||
| # message: ${{ steps.changelog.outputs.changelog }} | ||
| # gchat_webhook_url: ${{ secrets.GCHAT_RELEASE_WEBHOOK_URL }} |
This file contains hidden or 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,29 @@ | ||
| name: 🔄 Sync Fork | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 0 * * 1-5' # Monday to friday at 00:00 | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| sync-code: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: tgymnich/fork-sync@v1.8 | ||
| with: | ||
| token: ${{ secrets.QUAD_PUBLIC_GITHUB_TOKEN }} | ||
| base: develop | ||
| head: develop | ||
| pr_message: Automatic synchronization requires conflict resolution. | ||
| merge_method: rebase | ||
|
|
||
| sync-tags: | ||
| runs-on: ubuntu-latest | ||
| needs: sync-code | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| token: ${{ secrets.QUAD__PUBLIC_GITHUB_TOKEN }} | ||
| fetch-depth: 0 | ||
| - run: | | ||
| git push origin --tags |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 @@ | ||
| from .addon import ( | ||
| OpenRVAddon, | ||
| OPENRV_ROOT_DIR | ||
| ) | ||
|
|
||
|
|
||
| __all__ = ( | ||
| "OpenRVAddon", | ||
| "OPENRV_ROOT_DIR" | ||
| ) |
This file contains hidden or 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,33 @@ | ||
| import os | ||
| from openpype.modules import OpenPypeModule | ||
| from openpype.modules.interfaces import IHostAddon | ||
|
|
||
| OPENRV_ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) | ||
|
|
||
|
|
||
| class OpenRVAddon(OpenPypeModule, IHostAddon): | ||
| name = "openrv" | ||
| host_name = "openrv" | ||
|
|
||
| def initialize(self, module_settings): | ||
| self.enabled = True | ||
|
|
||
| def add_implementation_envs(self, env, app): | ||
| """Modify environments to contain all required for implementation.""" | ||
| # Set default environments if are not set via settings | ||
| defaults = { | ||
| "OPENPYPE_LOG_NO_COLORS": "True" | ||
| } | ||
| for key, value in defaults.items(): | ||
| if not env.get(key): | ||
| env[key] = value | ||
|
|
||
| def get_launch_hook_paths(self, app): | ||
| if app.host_name != self.host_name: | ||
| return [] | ||
| return [ | ||
| os.path.join(OPENRV_ROOT_DIR, "hooks") | ||
| ] | ||
|
|
||
| def get_workfile_extensions(self): | ||
| return [".rv"] |
This file contains hidden or 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,10 @@ | ||
| # -*- coding: utf-8 -*- | ||
| """OpenRV OpenPype host API.""" | ||
|
|
||
| from .pipeline import ( | ||
| OpenRVHost | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "OpenRVHost" | ||
| ] |
This file contains hidden or 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,34 @@ | ||
| import logging | ||
|
|
||
| import rv | ||
| from openpype.pipeline.context_tools import get_current_project_asset | ||
|
|
||
| log = logging.getLogger(__name__) | ||
|
|
||
|
|
||
| def reset_frame_range(): | ||
| """ Set timeline frame range. | ||
| """ | ||
| asset_doc = get_current_project_asset() | ||
| asset_name = asset_doc["name"] | ||
| asset_data = asset_doc["data"] | ||
|
|
||
| frame_start = asset_data.get("frameStart") | ||
| frame_end = asset_data.get("frameEnd") | ||
|
|
||
| if frame_start is None or frame_end is None: | ||
| log.warning("No edit information found for {}".format(asset_name)) | ||
| return | ||
|
|
||
| rv.commands.setFrameStart(frame_start) | ||
| rv.commands.setFrameEnd(frame_end) | ||
| rv.commands.setFrame(frame_start) | ||
|
|
||
|
|
||
| def set_session_fps(): | ||
| """ Set session fps. | ||
| """ | ||
| asset_doc = get_current_project_asset() | ||
| asset_data = asset_doc["data"] | ||
| fps = float(asset_data.get("fps", 25)) | ||
| rv.commands.setFPS(fps) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.