Commit graph

2731 commits

Author SHA1 Message Date
Jakub Trllo
f320cdc9dd
Merge pull request #5770 from ynput/feature/OP-5196_Push-to-Project-tool-AYON-compatibility
Push to project tool: Prepare push to project tool for AYON
2023-10-20 12:10:03 +02:00
Jakub Trllo
1ad8e94891
Merge pull request #5792 from ynput/bugfix/number-attr-widget-multiselection
'NumberAttrWidget' shows 'Multiselection' label on multiselection
2023-10-19 14:40:40 +02:00
Jakub Trllo
38883e4bdd removed unnecessary imports 2023-10-19 14:39:06 +02:00
Jakub Trllo
74b7364818 fix re-use of 'output' for representation 2023-10-19 14:39:06 +02:00
Jakub Trllo
ed4c306c43 modified integration to avoid direct access to integrate objects 2023-10-19 14:39:06 +02:00
Jakub Trllo
e729cc1964 moved 'control_integrate.py' to models as 'integrate.py' 2023-10-19 14:39:06 +02:00
Jakub Trllo
faadf3582c removed debug print 2023-10-19 14:39:06 +02:00
Jakub Trllo
37da54b438 implemented helper method to trigger controller events 2023-10-19 14:39:06 +02:00
Jakub Trllo
7951c95f09 renamed '_get_source_label' to '_prepare_source_label' 2023-10-19 14:39:05 +02:00
Jakub Trllo
2ac76ad4af moved user values model to different file 2023-10-19 14:39:05 +02:00
Jakub Trllo
78eebdaca1 initial changes of window 2023-10-19 14:39:05 +02:00
Jakub Trllo
edf5c52541 initial modification of controller 2023-10-19 14:39:05 +02:00
Jakub Trllo
4481c7590b renamed 'control_context.py' to 'control.py' 2023-10-19 14:39:05 +02:00
Jakub Trllo
178ab5d77a moved 'window.py' to subfolder 'ui' 2023-10-19 14:39:05 +02:00
Jakub Trllo
065ebc389c renamed 'app.py' to 'main.py' and use it in loader action 2023-10-19 14:39:05 +02:00
Jakub Trllo
0016f8aa3d created copy of push to project tool 2023-10-19 14:39:05 +02:00
Jakub Trllo
35c2a83288 store version contexts by version id 2023-10-19 14:07:49 +02:00
Jakub Trllo
63e983412c removed unused import 2023-10-19 11:10:19 +02:00
Jakub Trllo
e3a8050ced show multiselection label back on lost focus 2023-10-19 11:10:11 +02:00
Jakub Trllo
cd11029665 do not trigger value change signal when hiding multiselection label 2023-10-19 11:09:00 +02:00
Jakub Trllo
e3111239a0
trigger 'selection_changed' signal to propagate selection change (#5793) 2023-10-19 10:48:57 +02:00
Jakub Trllo
6ed7ebebce 'NumberAttrWidget' shows 'Multiselection' label on multiselection 2023-10-18 16:32:29 +02:00
Jakub Trllo
863ed821ca change '_reset_on_first_show' to 'False' on show and publish 2023-10-18 10:04:45 +02:00
Jakub Trllo
0f9c30378e revert 'get_publisher_tool' and 'show_publisher_tool' arguments 2023-10-17 14:26:14 +02:00
Jakub Trllo
27106bcc72 moved show and publish logic to publisher window 2023-10-17 14:12:57 +02:00
Ondřej Samohel
f13777873f
Merge branch 'develop' into tests/houdini_rops-self-publish-button 2023-10-17 13:49:53 +02:00
Jakub Trllo
70d8c72c96
Scene Inventory tool: Refactor Scene Inventory tool (for AYON) (#5758)
* propagate 'set_deselectable' in 'FoldersWidget'

* propagate more public functionality of 'FoldersWidget'

* initial commit

duplicated current sceneinventory to ayon_sceneinventory

* implemented basic controller helper

* use the controller in UI

* minor modifications

* initial changes of switch dialog

* moved 'get_containers' to controller

* refresh scene inventory after show

* fix passed argument to InventoryModel

* removed vertical expanding

* tweaks of folder input

* initial changes in switch dialog

* fix selection of folder

* use new scene inventory in host tools

* fix the size policy of FoldersField

* fix current context folder id

* fix current folder change

* renamed asset > folder and subset > product

* removed duplicated methods after rebase

* removed unused import

* formatting fix

* try to query only valid UUID

* query all containers documents at once

* validate representation ids in view too

* use 'container' variable instead of 'item'
2023-10-13 13:38:55 +02:00
Jakub Trllo
9c53837c33
AYON: Tools enhancements (#5753)
* moved universal 'TreeView' to utils

* use 'TreeView' in folders widget

* propagate 'set_deselectable' in 'FoldersWidget'

* propagate more public functionality of 'FoldersWidget'

* fix 'set_name_filer' typo

* rename 'get_current_project_name' to 'get_selected_project_name'

* added signals to task and project widgets

* implemented more helper methods in hierarchy model

* added more information to 'FolderItem'

* add empty line after docstring

* fix expected selection of folders in loader

* keep only 'double_clicked' signal

* pass full mouse event to signal
2023-10-13 10:40:41 +02:00
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
Mustafa-Zarkash
2633d5694a Merge branch 'develop' into tests/houdini_rops-self-publish-button 2023-10-06 21:27:50 +03:00
Jakub Trllo
2ea8d6530f
AYON Launcher tool: Fix refresh btn (#5685)
* rename 'refresh' to 'set_context' in 'TasksModel'

* implemented 'refresh' for folders and tasks widgets

* propagate refresh to all widgets

* don't use 'clear' of 'QStandardItemModel'

* change lifetime of folders cache to a minute

* added 'refresh_actions' method to launcher to skip clear cache of folders

* shorten line

* sorting is not case sensitive
2023-10-06 10:44:39 +02:00
Mustafa-Zarkash
44a3477f58 merge develop 2023-10-06 10:14:02 +03:00
Jakub Trllo
3daa0749d1
AYON Launcher tool: Fix skip last workfile boolean (#5700)
* reverse the boolean to skip last workfile

* remove 'start_last_workfile' key to keep logic based on settings

* change 'skip_last_workfile' for all variants of DCC

* fix context menu on ungrouped items

* better sort of action items
2023-10-05 15:08:31 +02:00
Roy Nieterau
7206757c13
Publisher: Refactor Report Maker plugin data storage to be a dict by plugin.id (#5668)
* Refactor plugin data storage to be a dict by plugin.id

+ Fix `_current_plugin_data` type on `__init__`

* Avoid plural when the plugin is singular

* Refactor `_plugin_data_by_plugin_id` to `_plugin_data_by_id`
2023-10-02 18:18:08 +02:00
Jakub Trllo
3328ba321d
AYON Workfiles Tool: Open workfile changes context (#5671)
* change context when opening workfile

* do not call 'set_context' in blender

* removed unused import
2023-10-02 17:01:54 +02:00
Roy Nieterau
52965a8275 Use set since it's supposed to be unique entries and is used in many lookups 2023-10-01 22:46:51 +02:00
Roy Nieterau
7f5879b0e8 Avoid memory leak - actually clear stored plugins on reset 2023-10-01 22:46:16 +02:00
Jakub Trllo
4b1c9077e6
fix workfiles tool save button (#5653) 2023-09-26 13:42:01 +02:00
Jakub Trllo
bfb5868417
AYON: Fix task type short name conversion (#5641)
* fix task type short name conversion

* workfiles tool can query project entity

* use project entity to fill task template data
2023-09-22 14:18:57 +02:00
Jakub Trllo
87ed2f960d
Launcher tool: Refactor launcher tool (for AYON) (#5612)
* added helper classes to utils

* implemented base of ayon utils

* initial commit for launcher tool

* use image for extender

* actions are shown and can be triggered

* fix actions on finished refresh

* refresh automatically

* fix re-refreshing of projects model

* added page slide animation

* updated abstrack classes

* change how icon is prepared

* fix actions sorting

* show messages like in launcher tool

* do not clear items on refresh

* stop refresh timer only on close event

* use Ynput/AYON for local settings json

* register default actions in launcher action module

* change register naming

* move 'SquareButton' to utils widgets

* removed duplicated method

* removed unused variable

* removed unused import

* don't use lambda

* swap default name for 'OpenPypeSettingsRegistry'

* Change support version
2023-09-22 11:47:39 +02:00
Mustafa-Zarkash
9eefc288a9 merge develop 2023-09-22 10:12:33 +03:00
Mustafa-Zarkash
53a626e9ac resolve hound 2023-09-15 17:04:43 +03:00
Mustafa-Zarkash
2f5494cc76 make few publisher attributes and methods public 2023-09-15 17:02:49 +03:00
Jakub Trllo
8729cf023c
Publisher: Fix screenshot widget (#5615)
* fix called super method name

* remove fade animation

* use paths to draw background

* use same opacity for lines

* add render hints

* minor cleanup
2023-09-14 18:57:23 +02:00
Jakub Trllo
076d16a50d
Workfiles tool: Refactor workfiles tool (for AYON) (#5550)
* ayon workfiles tool initial commit

* separated models into smaller files

* workfile can be listed and opened

* added browse logic

* added TODO for helper functions

* modified abstract controller

* implemented required methods

* base of save dialog

* added project settings to controller

* set context of side panel on init

* implemented save as dialog

* cleanup expected selection

* unify controller variable name

* base of published workfiles

* working published workfile copy

* added more missing features from workfiles tool

* Changed size policy of buttons to fill space vertically

* added overlay messages

* moved objects to abstraction

* moved 'window.py' to widgets

* small modifications in widgets

* get_workfile_info returns object

* filled docstrings in abstractions

* finishing touches

* backwards compatible work with host

* close window on successfull open

* remove indentation completelly

* added style for overlay label

* added handling of invalid host in controller

* added overlay with message if host is not valid

* added missing feature of disabled save

* use ayon_workfiles in ayon mode

* cleanup

* hound fixes

* use asset doc for 'change_current_context'

* added duplication action

* removed unused attributes and methods

* refresh workarea view on save as finished

* support host integrations without 'HostBase'

* fix 'filepath' fill

* reset item cache on save

* do not handle filepath in prepare workfile

* rename '_create_workfile_doc' > '_create_workfile_info_entity'

* fill comment before formatting

* fix column count by not calling 'clear'

* more explicit name of method

* use 'setHeaderData' to define header labels

* mimic changes from workarea widget in published widget
2023-09-08 13:45:00 +02:00
Jakub Trllo
2315ef84f1 do not start animation on init 2023-09-06 10:13:35 +02:00
Jakub Trllo
9f8cd773bb use start value instead of current value 2023-09-06 10:13:22 +02:00
Jakub Trllo
0463124867
Merge pull request #5547 from ynput/feature/multiselection-enum-def
Attribute Definitions: Multiselection enum def
2023-09-05 11:00:28 +02:00
Jakub Trllo
115dd54733 fix repaint when custom text changed 2023-09-04 10:56:30 +02:00
Jakub Trllo
5de86cb6df do not override scale factor rounding policy if has defined value through env variable 2023-09-01 17:33:57 +02:00