Commit graph

990 commits

Author SHA1 Message Date
Petr Kalis
ed339ed516
General: added fallback for broken ffprobe return (#6189)
* OP-8090 - added fallback for ffprobe issue

Customer provided .exr returned width and height equal to 0 which caused error in extract_thumbnail. This tries to use oiiotool to get metadata about file, in our case it read it correctly.

* OP-8090 - extract logic

`get_rescaled_command_arguments` is long enough right now, new method is better testable too.

* Update openpype/lib/transcoding.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

---------

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2024-02-05 10:26:55 +01:00
Ondřej Samohel
5f181507ab
Merge branch 'develop' into chore/remove-muster 2024-01-26 16:19:32 +01:00
Jakub Trllo
25b33c60f0 add missing '.tif' extension 2024-01-16 16:49:31 +01:00
Toke Stuart Jepsen
17e861f532 Illicit suggestion 2024-01-15 17:42:47 +00:00
Toke Stuart Jepsen
95d2d45e0f Fix reading image sequences through oiiotool 2024-01-12 17:07:28 +00:00
Jakub Trllo
aa9dbf612e
Chore: Event callbacks can have order (#6080)
* EventCallback object have order

* callbacks are processed by the callback order

* safer approach to get function information

* modified docstring a little

* added tests for ordered calbacks

* fix python 2 support

* added support for partial methods

* removed unused '_get_func_info'

* formatting fix

* change test functions docstring

* added test for removement of source function when partial is used

* Allow order 'None'

* implemented 'weakref_partial'  to allow partial callbacks

* minor tweaks

* added support to pass additional arguments to 'wearkref_partial'

* modify docstring

* added 'weakref_partial' to tests

* move public method before prive methods

* added required order back but use '100' as default order

* fix typo

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

---------

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
2024-01-04 10:51:18 +01:00
Ondřej Samohel
9ff27b51b5
🔥 remove Muster 2023-12-21 14:27:35 +01:00
Jakub Trllo
2d73f6a6aa
Chore: Staging mode determination (#5895)
* use 'is_staging_enabled' to determine if staging resource is used

* fix bug in 'is_running_staging'
2023-12-11 12:51:58 +01:00
Jakub Jezek
30800c1c2c
Refactor transcoding and thumbnail extraction code
- Removed the unused `additional_input_args` parameter from the `convert_colorspace` function in `transcoding.py`
- Renamed the `additional_input_args` parameter to `additional_command_args` in the `ExtractThumbnail` class in `extract_thumbnail.py`

These changes improve code clarity and remove unnecessary parameters.
2023-12-07 15:06:20 +01:00
Jakub Jezek
4229461755
hound 2023-12-06 21:05:32 +01:00
Jakub Jezek
206e1d94eb
removing duplicity of get_oiio_input_and_channel_args 2023-12-06 16:04:47 +01:00
Jakub Jezek
6be699bb82
Merge branch 'develop' into enhancement/OP-6659_extract-thumbnails-settings-size-frame 2023-12-06 15:53:23 +01:00
Jakub Jezek
54205db222
Refactor transcoding.py to fix sample aspect ratio parsing
The code change fixes an issue in the transcoding.py file where the sample aspect ratio was not being parsed correctly. The fix involves modifying the way the sample aspect ratio is accessed from the stream object.
2023-12-06 15:24:19 +01:00
Jakub Jezek
8cf109340b
rising amount of colors so it matches input of 8bits
https://github.com/ynput/OpenPype/pull/5944#discussion_r1404641936
2023-11-27 16:03:09 +01:00
Jakub Jezek
6b02f779b3
improving readability of code
https://github.com/ynput/OpenPype/pull/5944#discussion_r1404643069
2023-11-27 16:00:16 +01:00
Jakub Jezek
069977b327
improving rescale functionality 2023-11-24 21:35:06 +01:00
Jakub Jezek
09b3646bec
rescaling wip 2023-11-24 14:37:21 +01:00
Libor Batek
7aa80f2657
Merge branch 'develop' into enhancement/OP-6659_thumbnail-color-managed 2023-11-22 16:41:02 +01:00
Jakub Jezek
50c37b7e11
typos and code style 2023-11-21 17:05:06 +01:00
Jakub Jezek
d3de3fc295
removing input arguments 2023-11-21 17:04:35 +01:00
Jakub Trllo
a28d6d34d2 Merge branch 'develop' into feature/OP-7176_Use-folder-path-as-unique-identifier
# Conflicts:
#	openpype/client/server/entities.py
#	openpype/pipeline/context_tools.py
2023-11-13 16:39:09 +01:00
Jakub Ježek
cfbf257763
Merge branch 'develop' into bugfix/extract_thumbnail_oiio 2023-11-13 13:25:43 +01:00
Jakub Trllo
14ddd5cb51 use 'get_ayon_server_api_connection' in core functions 2023-11-09 14:36:42 +01:00
Jakub Trllo
ff8cd30244 Merge branch 'develop' into feature/OP-7176_Use-folder-path-as-unique-identifier 2023-11-02 11:40:01 +01:00
Jakub Trllo
00fb722089 use AYON username for user in template data 2023-10-31 13:55:22 +01:00
Jakub Trllo
576ac94e31
Remove semicolon 2023-10-26 19:12:15 +02:00
Jakub Trllo
bbfff158b0 it is possible to define key of label to differentiate 2023-10-26 19:08:25 +02:00
Jakub Trllo
8a9a1e66f3 comparison of UILabelDef is comparing label value 2023-10-26 19:08:08 +02:00
Jakub Trllo
922c481d95 use 'get_asset_name_identifier' for 'AVALON_ASSET' on app start 2023-10-24 18:03:02 +02:00
Jakub Jezek
fc900780cd
typo 2023-10-17 17:33:38 +02:00
Jakub Jezek
4113655725
updating pr changes to latest changes 2023-10-17 17:19:58 +02:00
Jakub Jezek
ea5bf33c1c
Merge branch 'develop' into bugfix/extract_thumbnail_oiio 2023-10-17 16:43:39 +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
Jakub Trllo
93fb76f359
Extract Review: Multilayer specification for ffmpeg (#5613)
* added function to extract more information about channels

* specify layer name which should be used for ffmpeg

* changed 'get_channels_info_by_layer_name' to 'get_review_info_by_layer_name'

* modify docstring

* fix dosctring again
2023-09-14 13:55:25 +02:00
Roy Nieterau
3a02964af5 Do not show debug log about ffmpeg probe in artist-facing report 2023-09-07 15:58:28 +02:00
Jakub Trllo
2b2209c1ab
Merge pull request #5553 from ynput/enhancement/remove-system-settings-requirement
Chore: Create plugin does not expect system settings
2023-09-05 12:00:12 +02:00
Jakub Trllo
6b1d060a81 updated docstring 2023-09-04 11:00:00 +02:00
Jakub Trllo
34d7a4f477
removed unnecessary line
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
2023-09-01 17:24:01 +02:00
Jakub Trllo
1f6df907eb fixed typehints 2023-09-01 16:54:05 +02:00
Jakub Trllo
cbc622c46f update docstrings 2023-08-31 11:23:38 +02:00
iLLiCiTiT
7ebec6b8bc simplified few lines 2023-08-30 22:55:44 +02:00
iLLiCiTiT
9e19f2f8ca implemented multiselection EnumDef 2023-08-30 22:09:33 +02:00
Jakub Trllo
e56d3530cb
Chore: Queued event system (#5514)
* implemented queued event system

* implemented basic tests
2023-08-29 17:31:49 +02:00
Jakub Trllo
ae3eb37776
AYON: Add folder to template data (#5417)
* added 'folder[name]' to template data

* removed asset <-> folder conversion from conversion utils

* use folder[name] in maya namespace
2023-08-07 17:22:28 +02:00
Jakub Trllo
7e9f42b447
Applications: Use prelaunch hooks to extract environments (#5387)
* ApplicationManager can have more granular way how applications are launched

* executable is optional to be able create ApplicationLaunchContext

* launch context can run prelaunch hooks without launching application

* 'get_app_environments_for_context' is using launch context to prepare environments

* added 'launch_type' as one of filtering options for LaunchHook

* added 'local' launch type filter to existing launch hooks

* define 'automated' launch type in remote publish function

* modified publish and extract environments cli commands

* launch types are only for local by default

* fix import

* fix launch types of global host data

* change order or kwargs

* change unreal filter attribute
2023-08-03 10:04:15 +02:00
Jakub Trllo
28768dc012
AYON: Environment variables and functions (#5361)
* use proper start script

* implemented ayon variants of execute functions

* more suitable names of functions

* use 'PACKAGE_DIR' instead of 'OPENPYPE_REPOS_ROOT' environment variable

* use suitable enviornment variables in ayon mode

* keep sync server in openpype

* Better comment
2023-07-31 18:37:46 +02:00
Jakub Trllo
0d9ea4aa26
Applications: Environment variables order (#5245)
* apply project environemnts after context environments are set

* make asset and task environments optional

* added more conditions for host environemnts

* validate context for host

* fix double negative
2023-07-28 15:46:32 +02:00
Jakub Trllo
d63aa34a76
AYON: 3rd party addon usage (#5300)
* implemented helper functions to get ffmpeg and oiio tool arguments

* modified validation functions to be able to handle list of arguments

* path getters can return a path in AYON mode if one argument is returned

* removed test exception

* modified docstrings

* is_oiio_supported is using new functions to get launch arguments

* new functions are in lib public =

* use new functions all over the place

* renamed 'ffmpeg_path' to 'ffmpeg_args'

* raise 'ToolNotFoundError' if tool argument could not be found

* reraise 'KnownPublishError' in publish plugins

* fix comment

* simplify args start

* ffmpeg and oiio function require tool name and support additional arguments

* renamed 'get_oiio_tools_args' to 'get_oiio_tool_args'

* fix variable name
2023-07-27 10:54:45 +02:00
Jakub Trllo
f0801cb098
Chore: Remove deprecated functions (#5323)
* removed deprecated files from root of openpype

* removed deprecated content from openype/lib

* fix imports
2023-07-25 16:19:14 +02:00
Jakub Trllo
326cdacc11
change 'ayon' to 'AYON' and 'ynput' to 'Ynput' in appdirs (#5298) 2023-07-14 09:57:48 +02:00