Commit graph

61 commits

Author SHA1 Message Date
Jakub Trllo
0498a4016d
Loader tool: Refactor loader tool (for AYON) (#5729)
* initial commitof ayon loader

* tweaks in ayon utils

* implemented product type filtering

* products have icons and proper style

* fix refresh of products

* added enable grouping checkbox

* added icons and sorting of grouped items

* fix version delegate

* add splitter between context and product type filtering

* fix products filtering by name

* implemented 'filter_repre_contexts_by_loader'

* implemented base of action items

* implemented folder underline colors

* changed version items to dictionary

* use 'product_id' instead of 'subset_id'

* base implementation of info widget

* require less to trigger action

* set selection of version ids in controller

* added representation widget and related logic changes

* implemented actions in representations widget

* handle load error

* use versions for subset loader

* fix representations widget

* implemente "in scene" logic properly

* use ayon loader in host tools

* fix used function to get tasks

* show actions per representation name

* center window

* add window flag to loader window

* added 'ThumbnailPainterWidget' to tool utils

* implemented thumbnails model

* implement thumbnail widget

* fix FolderItem args docstring

* bypass bug in ayon_api

* fix sorting of folders

* added refresh button

* added expected selection and go to current context

* added information if project item is library project

* added more filtering options to projects widget

* added missing information abou is library to model items

* remove select project item on selection change

* filter out non library projects

* set current context project to project combobox

* change window title

* fix hero version queries

* move current project to the top

* fix reset

* change icon for library projects

* added libraries separator to project widget

* show libraries separator in loader

* ise single line expression

* library loader tool is loader tool in AYON mode

* fixes in grouping model

* implemented grouping logic

* use loader in tray action

* better initial sizes

* moved 'ActionItem' to abstract

* filter loaders by tool name based on current context project

* formatting fixes

* separate abstract classes into frontend and backend abstractions

* added docstrings to abstractions

* implemented 'to_data' and 'from_data' for action item options

* added more docstrings

* first filter representation contexts and then create action items

* implemented 'refresh' method

* do not reset controller in '_on_first_show'

Method '_on_show_timer' will take about the reset.

* 'ThumbnailPainterWidget' have more options of bg painting

* do not use checkerboard in loader thumbnail

* fix condition

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>

---------

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
2023-10-11 18:16:45 +02:00
Roy Nieterau
135cb28512 Add deprecation warning to usage of fname on Loader plugins 2023-09-06 22:17:21 +02:00
Roy Nieterau
f58994d59c Loader: Remove context argument from Loader.__init__() (#4602)
* Remove Loader `context` argument to __init__

* Add backwards compatibility for Loader.load by still setting `.fname` attr

* Refactor/remove usage of `self.fname` in loaders

* Fix some refactoring

* Fix some refactoring

* Hound

* Revert invalid refactor

* Fix refactor

* Fix playblast panel collection

* Refactor missing method

* Fix typo

* Use the correct `context`

---------

Co-authored-by: Toke Stuart Jepsen <tokejepsen@gmail.com>
Co-authored-by: Kayla Man <64118225+moonyuet@users.noreply.github.com>
Co-authored-by: Jakub Trllo <jakub.trllo@gmail.com>
2023-07-11 17:48:33 +02:00
Roy Nieterau
fe58cb3c7c
Enhancement: More descriptive error messages for Loaders (#5227)
* More descriptive error messages for Loaders

* Restructure error reporting
2023-07-03 13:42:00 +02:00
Jakub Trllo
42cc715233 changed info to debug 2023-02-28 11:30:39 +01:00
Jakub Trllo
8180076c08 safer data access
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
2023-02-28 11:30:39 +01:00
iLLiCiTiT
7a8aa123ff cleanup changes based on comments 2023-02-28 11:30:39 +01:00
Jakub Trllo
1b7af3e2c6 fix filtering 2023-02-28 11:30:39 +01:00
Jakub Trllo
f83fefd8a9 Added support for extensions filtering 2023-02-28 11:30:39 +01:00
Jakub Trllo
d3cc8b59c5 replaced call to mongo 'dbcon.parenthood' with 'get_representation_parents' function 2023-02-14 10:42:54 +01:00
Jakub Trllo
d08172e6a6
Merge pull request #4360 from ynput/feature/is_compatible_on_loader
General: Loader plugin define its own compatibility
2023-02-09 11:31:15 +01:00
Roy Nieterau
c7ca9bb77a Fix loader not working in Houdini 2023-01-25 16:07:40 +01:00
Jakub Trllo
bce5363e42 reorganized the order of conditions 2023-01-23 10:23:07 +01:00
Jakub Trllo
a91a980b1b laoder plugin has compatibility method on it's own 2023-01-20 19:56:38 +01:00
Jakub Trllo
e444e0c7d9
Merge pull request #4284 from ynput/feature/OP-3930_Publish-to-Studio-Library
General: Push to studio library
2023-01-17 14:47:04 +01:00
iLLiCiTiT
7a32fa0b05 set enabled attribute of LoaderPlugin 2023-01-12 00:41:11 +01:00
Jakub Trllo
74984afc7b added new 'LoadError' to avoid showing traceback 2023-01-05 18:11:49 +01:00
Jakub Trllo
a7d82ecbc0
Merge pull request #3838 from pypeclub/feature/OP-3828_Workfile-template-build-enhancements
General: Workfile template build enhancements
2022-09-26 10:14:08 +02:00
Roy Nieterau
c4127208d2 Fix typo in ContainersFilterResult namedtuple not_foud -> not_found 2022-09-22 11:29:01 +02:00
Jakub Trllo
37286eef2c propagated 'get_contexts_for_repre_docs' to load init 2022-09-13 11:42:38 +02:00
Jakub Trllo
abbe7b7a36 implemented function 'get_contexts_for_repre_docs' to get representation contexts from already queried representations 2022-09-09 19:15:49 +02:00
Jakub Trllo
f2a191861b marked 'path_from_representation' as deprecated and replaced it's usage with 'get_representation_path_with_anatomy' 2022-08-29 14:41:28 +02:00
Jakub Trllo
315cf40d8b fixed import in load utils 2022-08-29 14:29:43 +02:00
Jakub Trllo
d58ea89415 implemented 'get_representation_path_with_anatomy'. 2022-08-29 14:26:23 +02:00
Jakub Trllo
ce74673715 Be explicit in error message what is missing 2022-08-18 15:28:10 +02:00
Jakub Trllo
041c676f2c Merge branch 'develop' into feature/maya-build-from-template 2022-08-11 17:34:10 +02:00
Jakub Trllo
cbfa9015b1 catch failed applied settings 2022-08-05 10:45:35 +02:00
Jakub Trllo
6d2a869b2e discover loader plugins can expect project name 2022-08-05 10:08:20 +02:00
Jakub Trllo
5f5aba7ae3 loader plugins can handle settings on their own 2022-08-01 13:38:00 +02:00
Jakub Trllo
b1f2831868 moved 'get_loaders_by_name' to load utils 2022-07-27 10:12:04 +02:00
Jakub Trllo
2209bcf6b1 check for 'ILoadHost' to call different method on host 2022-07-21 11:31:44 +02:00
Jakub Trllo
a7044dadf7 fix containers varible usage 2022-07-20 17:35:27 +02:00
Jakub Trllo
1ec708ce7f added helper functions to get outdated containers or just check if there are any outdated 2022-07-15 17:01:28 +02:00
Jakub Trllo
6f521242cb implemented functions to filter containers into 4 possible categories 2022-07-15 17:01:00 +02:00
Jakub Trllo
d9d8f7c315 fix add missing project name in args 2022-07-07 15:37:21 +02:00
Jakub Trllo
3612ceb937 fix query of current version 2022-07-04 19:12:52 +02:00
Jakub Trllo
a61bc7b839 Merge branch 'develop' into feature/OP-3504_Use-query-functions-in-loading 2022-07-04 13:52:27 +02:00
Jakub Trllo
dd1e1960da fix few issues 2022-06-30 11:54:23 +02:00
Jakub Trllo
aa741a1148 use query functions in load logic 2022-06-30 11:34:34 +02:00
Jakub Trllo
b6ea950b3a use new Anatomy import in rest of pipeline 2022-06-29 15:22:49 +02:00
Jakub Trllo
3772e1d68c replace avalon imports in pipeline 2022-04-14 12:36:53 +02:00
Jakub Trllo
a05755e832 use schema from openpype 2022-04-13 18:10:40 +02:00
Jakub Trllo
37ad529fa5 Merge branch 'develop' into enhancement/OP-2956_move-host-install 2022-04-08 11:14:44 +02:00
Jakub Trllo
c298e06ba6 use 'filepath_from_context' instead of 'get_representation_path_from_context' 2022-04-07 11:11:46 +02:00
Jakub Trllo
eabe2fe569 changed usage of registered root 2022-04-01 19:37:58 +02:00
Jakub Trllo
89d61723de applied comments 2022-03-23 19:20:37 +01:00
Jakub Trllo
dc9852a0d6 use new register and discover functions for load, thumbnail and actions 2022-03-23 14:53:14 +01:00
Jakub Trllo
ac6182c792 Merge branch 'develop' into enhancement/OP-2925_move-remaining-plugins 2022-03-22 16:14:22 +01:00
Jakub Trllo
83fd67eb8d
Merge pull request #2918 from pypeclub/enhancement/OP-2949_move-pipeline-constants
General: Move pipeline constants to OpenPype
2022-03-22 16:10:49 +01:00
Jakub Trllo
5e5fc4ec55 removed silo references 2022-03-22 12:31:14 +01:00