ayon-core/openpype/hosts/unreal
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
..
api Just some grammar tweaks 2023-03-30 13:59:22 +02:00
hooks Global: Optimize anatomy formatting by only formatting used templates instead (#4784) 2023-04-17 14:53:15 +02:00
integration Just some grammar tweaks 2023-03-30 13:59:22 +02:00
plugins Merge branch 'develop' into bugfix/OP-3951_Deadline-checking-existing-frames-fails-when-there-is-number-in-file-name 2023-04-13 12:35:26 +02:00
__init__.py renamed module.py to addon.py in unreal 2022-08-26 15:11:14 +02:00
addon.py Fixed the generation of the project, added copyrights notices, removed .ini files. 2023-02-24 15:31:54 +01:00
lib.py ♻️ modify UE launching to use executable from settings 2023-04-05 17:17:55 +02:00
README.md drop support for <4.26 2021-06-29 16:43:20 +02:00
ue_workers.py 🚨 some style fixes 2023-03-21 16:48:50 +01:00

Unreal Integration

Supported Unreal Engine version is 4.26+ (mainly because of major Python changes done there).

Project naming

Unreal doesn't support project names starting with non-alphabetic character. So names like 123_myProject are invalid. If OpenPype detects such name it automatically prepends letter P to make it valid name, so 123_myProject will become P123_myProject. There is also soft-limit on project name length to be shorter than 20 characters. Longer names will issue warning in Unreal Editor that there might be possible side effects.