Commit graph

936 commits

Author SHA1 Message Date
Roy Nieterau
87e6704b1a
Tweak profiles logging to debug level (#5194) 2023-06-27 11:55:10 +02:00
Jakub Trllo
3631cc5f40
fix single root packing (#5154) 2023-06-19 11:18:55 +02:00
Jakub Trllo
22296aeb6e
Pack project: Raise exception with reasonable message (#5145)
* raise exception with reasonable message

* raise errors at better places
2023-06-15 14:32:53 +02:00
Jakub Jezek
fbb6afe5c3
adding psd to IMAGE_EXTENSIONS constant 2023-06-06 17:17:42 +02:00
Jakub Trllo
aab6e19b5e skip roots validation for documents only variant of the functions 2023-06-01 15:48:52 +02:00
Jakub Trllo
248336bb0d
General: Lib code cleanup (#5003)
* implemented 'is_func_signature_supported' function

* 'WeakMethod' can be imported from 'python_2_comp' all the time

* simplified events logic for callback registration

* modified docstrings in publish lib

* removed unused imports

* fixed 'run_openpype_process' docstring
2023-05-24 10:51:35 +02:00
Jakub Trllo
4107874eb9
Project packager: Backup and restore can store only database (#4879)
* added helper functions to client mongo api

* pack and unpack project functions can work without project files

* added flag argument to pack project command to zip only project files

* unpack project has also only project argument

* Fix extractions
2023-04-27 23:41:00 +02:00
Roy Nieterau
b05afaa837
Global: Optimize anatomy formatting by only formatting used templates instead (#4784)
* TemplatesDict can create different type of template

* anatomy templates can be formatted on their own

* return objected templates on get item

* '_rootless_path' is public classmethod 'rootless_path_from_result'

* 'AnatomyStringTemplate' expect anatomy templates

* remove key getters

* fix typo 'create_ojected_templates' -> 'create_objected_templates'

* Fix type of argument

* Fix long line

* Optimize formatting to use single template formatting instead of formatting full anatomy

* Optimize formatting to use single template formatting instead of formatting full anatomy

* Optimize formatting to use single template formatting instead of formatting full anatomy

* Optimize formatting to use single template formatting instead of formatting full anatomy

* Optimize formatting to use single template formatting instead of formatting full anatomy

* Optimize formatting to use single template formatting instead of formatting full anatomy

* Optimize formatting to use single template formatting instead of formatting full anatomy

* Use format strict + code cosmetics

* Get template from the formatted data

* Update openpype/plugins/publish/integrate_legacy.py

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

* Cosmetics

* Move template obj definition for path up + rename to `path_template_obj`

* Refactor more cases from `anatomy.format` to template obj `.format_strict`

* Refactor more cases from `anatomy.format` to template obj `.format_strict`

* Refactor more cases from `anatomy.format` to template obj `.format_strict`

---------

Co-authored-by: Jakub Trllo <jakub.trllo@gmail.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-04-17 14:53:15 +02:00
Jakub Trllo
70087468c3
General: Anatomy templates formatting (#4773)
* TemplatesDict can create different type of template

* anatomy templates can be formatted on their own

* return objected templates on get item

* '_rootless_path' is public classmethod 'rootless_path_from_result'

* 'AnatomyStringTemplate' expect anatomy templates

* remove key getters

* fix typo 'create_ojected_templates' -> 'create_objected_templates'

* Fix type of argument

* Fix long line
2023-04-05 15:59:36 +02:00
Jakub Ježek
ca92f15042
Merge branch 'develop' into extract_burnin_fix_env_pythonhome 2023-03-31 22:33:37 +02:00
Roy Nieterau
35a5d5f172
Revert for backwards compatibility of client code
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-03-30 19:43:33 +02:00
Roy Nieterau
3fae1f8521 Just some grammar tweaks 2023-03-30 13:59:22 +02:00
Roy Nieterau
168a49dba6 Remove both PYTHONPATH and PYTHONHOME
- Fixes an issue with Houdini Py3.7 conflict with OpenPype Py3.9 because Houdini sets `PYTHONHOME`
2023-03-29 18:00:03 +02:00
Roy Nieterau
9a71cfec41 Allow passing an empty environment explicitly like env = {} 2023-03-29 17:57:12 +02:00
Toke Jepsen
b7f6589886
Merge branch 'develop' into feature/OP-3278_camera-focal-length 2023-03-29 11:12:09 +02:00
Toke Jepsen
7264ce3aaf
Update openpype/lib/execute.py 2023-03-29 09:17:20 +01:00
Roy Nieterau
4d53e4f5fb
Application launch context: Include app group name in logger (#4684)
* Include app group name with app name for logger

* Include app group name in launch finished log message

* Include app group name with launching message

* Use `application.full_name` instead
2023-03-23 10:27:02 +01:00
Roy Nieterau
90f5cdf7f3
Use app.full_name (#4686) 2023-03-23 09:59:56 +01:00
Roy Nieterau
654bef0afc Tweak logging - preserve order and clarify versions with groups 2023-03-22 23:53:30 +01:00
Toke Stuart Jepsen
e9eb09e100 Initial working version 2023-03-22 12:58:33 +00:00
Roy Nieterau
28b424bf2f
Publisher: Windows reduce command window pop-ups during Publishing (#4672)
* Avoid command pop-ups during publishing (tip by @iLLiCiTiT)

* No need to pass creationflags because it's already done in `run_subprocess`

* Hide command window for `shell=True` calls

* Update openpype/lib/execute.py

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

---------

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-03-22 12:13:21 +01:00
Roy Nieterau
96e184c8ca
Integrator: Enforce unique destination transfers, disallow overwrites in queued transfers (#4662)
* Fix #4656: Enforce unique destination transfer in Integrator

Note that this is per instance - it doesn't validate cross-instance destinations in the context

* Use explicit DuplicateDestinationError and raise as KnownPublishError
2023-03-21 15:29:19 +01:00
Jakub Trllo
f96670d9df use right validation for ffmpeg executable 2023-03-16 11:20:00 +01:00
Petr Kalis
be6a22b485 Fix - newline 2023-02-23 16:42:48 +01:00
Petr Kalis
72a3572d95 Revert "OP-4643 - split command line arguments to separate items"
This reverts commit deaad39437.
2023-02-23 16:35:42 +01:00
Petr Kalis
945f1dfe55 OP-4643 - added explicit enum for transcoding type
As transcoding info (colorspace, display) might be collected from DCC, it must be explicit which should be used.
2023-02-23 15:39:55 +01:00
Petr Kalis
5678bdbf06 OP-4643 - different splitting for oiio
It seems that logic in ExtractReview does different thing.
2023-02-23 15:39:55 +01:00
Petr Kalis
559d54c3a1 Revert "OP-4643 - split command line arguments to separate items"
This reverts commit deaad39437.
2023-02-23 15:39:55 +01:00
Petr Kalis
984974d7e0 OP-4643 - split command line arguments to separate items
Reuse existing method from ExtractReview, put it into transcoding.py
2023-02-23 15:39:54 +01:00
Petr Kalis
3921982365 OP-4642 - added additional command arguments for oiiotool
Some extension requires special command line arguments (.dpx and binary depth).
2023-02-23 15:39:54 +01:00
Petr Kalis
925c7a9564 OP-4643 - updated docstring for convert_colorspace 2023-02-23 15:39:53 +01:00
Petr Kalis
016111ab33 OP-4643 - changed docstring
Elaborated more that 'target_colorspace' and ('view', 'display') are disjunctive.
2023-02-23 15:39:53 +01:00
Petr Kalis
97a2014c12 OP-4643 - moved output argument to the end 2023-02-23 15:39:53 +01:00
Petr Kalis
7e9d707226 OP-4643 - updated docstring, standardized arguments 2023-02-23 15:39:52 +01:00
Petr Kalis
be176bbeb2 OP-4643 - implemented display and viewer color space 2023-02-23 15:39:52 +01:00
Petr Kalis
83d21d9d77 OP-4643 - changed oiio_cmd creation
Co-authored-by: Toke Jepsen <tokejepsen@gmail.com>
2023-02-23 15:39:52 +01:00
Petr Kalis
9fc4070e06 OP-4643 - refactored according to review
Function turned into single filepath input.
2023-02-23 15:39:51 +01:00
Petr Kalis
ec299f0d3c OP-4643 - pass path for ocio config 2023-02-23 15:39:51 +01:00
Petr Kalis
2f1888bbfb OP-4643 - added ExtractColorTranscode
Added method to convert from one colorspace to another to transcoding lib
2023-02-23 15:39:50 +01:00
Petr Kalis
6cb8cbd6fc OP-4643 - added explicit enum for transcoding type
As transcoding info (colorspace, display) might be collected from DCC, it must be explicit which should be used.
2023-02-23 15:36:03 +01:00
Petr Kalis
840f681134 OP-4643 - different splitting for oiio
It seems that logic in ExtractReview does different thing.
2023-02-23 15:36:03 +01:00
Petr Kalis
94ee028792 Revert "OP-4643 - split command line arguments to separate items"
This reverts commit deaad39437.
2023-02-23 15:36:03 +01:00
Petr Kalis
b304d63461 OP-4643 - split command line arguments to separate items
Reuse existing method from ExtractReview, put it into transcoding.py
2023-02-23 15:36:02 +01:00
Petr Kalis
b1d30058b0 OP-4642 - added additional command arguments for oiiotool
Some extension requires special command line arguments (.dpx and binary depth).
2023-02-23 15:36:01 +01:00
Petr Kalis
7eacd1f30f OP-4643 - updated docstring for convert_colorspace 2023-02-23 15:36:00 +01:00
Petr Kalis
190a79a836 OP-4643 - changed docstring
Elaborated more that 'target_colorspace' and ('view', 'display') are disjunctive.
2023-02-23 15:36:00 +01:00
Petr Kalis
8598c1ec39 OP-4643 - moved output argument to the end 2023-02-23 15:36:00 +01:00
Petr Kalis
176f53117f OP-4643 - updated docstring, standardized arguments 2023-02-23 15:35:59 +01:00
Petr Kalis
382074b54c OP-4643 - implemented display and viewer color space 2023-02-23 15:35:59 +01:00
Petr Kalis
756661f71b OP-4643 - changed oiio_cmd creation
Co-authored-by: Toke Jepsen <tokejepsen@gmail.com>
2023-02-23 15:35:59 +01:00