Commit graph

279 commits

Author SHA1 Message Date
Kayla Man
b4c0f2880a add validate resolution as parts of maya settings 2023-10-06 20:35:38 +08:00
Kayla
7967e9b0b9 Merge branch 'develop' into enhancement/OP-6629_Maya-Export-Rig-Animation-as-FBX 2023-10-01 20:18:10 +08:00
Kayla
00131ffd15 refactor the validators for skeletonMesh and use rig validators as abstract class & minor tweak on collectors and settings 2023-10-01 20:15:22 +08:00
Petr Kalis
a66edaf1d0
Maya: implement matchmove publishing (#5445)
* OP-6360 - allow export of multiple cameras as alembic

* OP-6360 - make validation of camera count optional

* OP-6360 - make ValidatorCameraContents optional

This validator checks number of cameras, without optionality publish wouldn't be possible.

* OP-6360 - allow extraction of multiple cameras to .ma

* OP-6360 - update defaults for Ayon

Changes to Ayon settings should also bump up version of addon.

* OP-6360 - new matchmove creator

This family should be for more complex sets (eg. multiple cameras, with geometry, planes etc.

* OP-6360 - updated camera extractors

Added matchmove family to extract multiple cameras.
Single camera is protected by required validator.

* OP-6360 - added matchmove to reference loader

* Revert "OP-6360 - make ValidatorCameraContents optional"

This reverts commit 4096e81f785b1299b54b1e485eb672403fb89a66.

* Revert "OP-6360 - update defaults for Ayon"

This reverts commit 4391b25cfc93fbb783146a726c6097477146c467.

* OP-6360 - performance update

Number of cameras might be quite large, set operations will be faster than loop.

* Revert "OP-6360 - make validation of camera count optional"

This reverts commit ee3d91a4cbec607b0f8cc9d47382684eba88d6d0.

* OP-6360 - explicitly cast to list for Maya functions

cmds.ls doesn't like sets in some older versions of Maya apparently. Sets are used here for performance reason, so explicitly cast them to list to make Maya happy.

* OP-6360 - added documentation about matchmove family

* OP-6360 - copy input planes

* OP-6360 - expose Settings to keep Image planes

Previous implementation didn't export Image planes in Maya file, to keep behavior backward compatible new Setting was added and set to False.

* OP-6360 - make both camera extractors optional

In Settings Alembic extractor was visible as optional even if code didn't follow that.

* OP-6360 - used long name

* OP-6360 - fix wrong variable

* Update openpype/hosts/maya/plugins/publish/extract_camera_mayaScene.py

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

* OP-6360 - removed shortening of varible

* OP-6360 - Hound

* OP-6360 - fix wrong key

* Update openpype/hosts/maya/plugins/publish/extract_camera_mayaScene.py

Co-authored-by: Toke Jepsen <tokejepsen@gmail.com>

* Update openpype/hosts/maya/api/lib.py

Co-authored-by: Toke Jepsen <tokejepsen@gmail.com>

* Update openpype/hosts/maya/plugins/publish/extract_camera_alembic.py

Co-authored-by: Toke Jepsen <tokejepsen@gmail.com>

* OP-6360 - fix wrong variable

* OP-6360 - added reattaching method

Image planes were attached wrong, added method to reattach them properly.

* Revert "Update openpype/hosts/maya/api/lib.py"

This reverts commit 4f40ad613946903e8c51b2720ac52756e701f8b8.

* OP-6360 - exported baked camera should be deleted

Forgotten commenting just for development.

* OP-6360 - updated docstring

* OP-6360 - remove scale keys

Currently parentConstraint from old camera to new one doesn't work for keyed scale attributes. To key scale attributes doesn't make much sense so as a workaround, keys for scale attributes are checked AND if they are diferent from defaults (1.0) publish fails (as artist might want to actually key scale). If all scale keys are defaults, they are temporarily removed, cameras are parent constrained, exported and old camera returned to original state.

* OP-6360 - cleaned up resetting of scale keys

Batch calls used instead of one by one.
Cleaned up a return type as key value is no necessary as we are not setting it, just key.

* OP-6360 - removed unnecessary logging

* OP-6360 - reattach image plane to original camera

Image plane must be reattached before baked camera(s) are deleted.

* OP-6360 - added context manager to keep image planes attached to original camera

Without this image planes would disappear after removal of baked cameras.

* OP-6360 - refactored contextmanager

* OP-6360 - renamed flag

Input connections are not copied anymore as they might be dangerous. It is possible to epxlicitly attach only image planes instead.

* OP-6360 - removed copyInputConnections

Copying input connections might be dangerous (rig etc.), it is possible to explicitly attach only image planes.

* OP-6360 - updated plugin labels

* Update openpype/hosts/maya/plugins/create/create_matchmove.py

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

* OP-6360 - fixed formatting

---------

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
Co-authored-by: Toke Jepsen <tokejepsen@gmail.com>
2023-09-29 17:33:28 +02:00
Kayla
6a4ab981ad add validator to make sure all nodes are refernce nodes in skeleton_Anim_SET 2023-09-25 23:00:25 +08:00
Kayla
b7995a41a7 enable the skeleton rig content validator and make the fbx animation collector optional and use the asset as both asset_name and asset_type data for custom subset in the loader 2023-09-20 21:26:02 +08:00
Kayla Man
4bbb2e0ba3 add the validator into maya settings 2023-09-13 13:40:43 +08:00
Kayla Man
5c3f12d518 make the validators optional 2023-09-11 20:19:40 +08:00
Jakub Trllo
dd27f4e839
AYON: Apply unknown ayon settings first (#5435)
* apply unknown ayon settings first

* added "Main" to empty default variants

* use 'default_variants' in aftereffects creator
2023-08-11 16:23:27 +02:00
Petr Kalis
8b128d91bc
Maya: allow not creation of group for Import loaders (#5427)
* OP-6357 - removed unneeded import

* OP-6357 - extracted logic for getting custom group and namespace from Settings

Mimicing logic in ReferenceLoader, eg. group could be left empty >> no groupping of imported subset.

* OP-6357 - same logic for abc animation as Reference

* OP-6357 - same logic for yeti rig as ReferenceLoder

Allows to not create wrapping group.

* OP-6357 - added separate import_loader to settings

Could be used to not creating wrapping groups when Group kept empty.

* OP-6357 - added product subset conversion for ayon settings

* OP-6357 - fix using correct variable

Artist input comes from `data` not directly from self.options

* OP-6357 - add attach_to_root to options to allow control by same key

* OP-6357 - added docstring

* Added settings for Import loaders in maya

* OP-6357 - refactored formatting
2023-08-11 16:12:05 +02:00
Jakub Trllo
31969f394f
Settings: Houdini & Maya create plugin settings (#5436)
* changed 'defaults' to 'default_variants' in create templates

* use 'template_create_plugin' instead of 'schema_maya_create_render'

* resave defaults and add Main to default value

* updated AYON settings

* formatting fixes

* unified indentation

* renamed 'Default Subsets' to 'Default Variants'
2023-08-10 11:34:54 +02:00
Mustafa Zarkash
f4f1484c6a
Bugfix: update defaults to default_variants in maya and houdini OP DCC settings (#5407)
* update defaults to default_variants

* update defaults to defaults in Ayon dcc settings

* increment maya and houdini ayon addons patch version
2023-08-03 21:57:26 +02:00
Toke Stuart Jepsen
f5ccde3b9f Remove enabled 2023-07-21 14:30:08 +01:00
Toke Stuart Jepsen
167fd7186c Hide CreateAnimation instead of disable 2023-07-14 11:15:18 +01:00
Ondrej Samohel
92d18eb970
🔀 Merge remote-tracking branch 'origin/develop' into maya_new_publisher 2023-07-11 15:58:18 +02:00
Jakub Jezek
744095eb16
maya: allign default settings to distributed aces 1.2 config 2023-07-03 16:39:40 +02:00
Ondrej Samohel
8c848f6e55
Merge remote-tracking branch 'origin/develop' into maya_new_publisher 2023-06-16 16:29:54 +02:00
Jakub Jezek
ee41b877e6
refactor file rules logic to separate host activation
This is implementing logic introduced here https://github.com/ynput/OpenPype/pull/4700#discussion_r1193612003
2023-05-31 16:10:17 +02:00
Jakub Ježek
2c31dc1f21
Merge branch 'develop' into feature/OP-5207_Global-host-color-management-activation 2023-05-24 10:25:24 +02:00
Toke Stuart Jepsen
544c043ece Merge branch 'develop' into maya_new_publisher
# Conflicts:
#	openpype/hosts/maya/api/lib.py
#	openpype/hosts/maya/api/plugin.py
#	openpype/hosts/maya/plugins/create/create_animation.py
#	openpype/hosts/maya/plugins/create/create_review.py
#	openpype/hosts/maya/plugins/load/load_reference.py
#	openpype/modules/deadline/plugins/publish/submit_maya_deadline.py
2023-05-16 10:23:11 +01:00
Toke Jepsen
40d4fea857
Maya: Validate shader name - OP-5903 (#4971)
* Fix regex matching.

* Add active setting

* Update openpype/hosts/maya/plugins/publish/validate_shader_name.py
2023-05-15 14:10:49 +02:00
Jakub Ježek
1cc60bb52a
Merge branch 'develop' into feature/OP-5207_Global-host-color-management-activation 2023-05-05 16:06:55 +02:00
Jakub Jezek
bec1dd775d
adding default settings 2023-05-02 21:20:39 +02:00
Jakub Jezek
602a4ae8ec
Merge branch 'develop' into feature/OP-5207_Global-host-color-management-activation 2023-05-02 20:56:58 +02:00
Seyedmohammadreza Hashemizadeh
61c37ebb22 add display handle setting for maya load references 2023-04-27 16:22:01 +02:00
Jakub Jezek
3fe4710b21
Maya: refactor colorspace preferecies with new settings 2023-04-21 15:42:19 +02:00
Jakub Jezek
63af34e9ab
rename use_ocio_config to set_ocio_config 2023-04-21 11:52:34 +02:00
Roy Nieterau
c90c55edd9
Merge branch 'develop' into enhancement/maya_hide_animation_creator 2023-04-20 14:03:50 +02:00
Roy Nieterau
b82279f9d7 Fix default so namespace behaves like before #4511 2023-04-19 21:58:16 +02:00
Roy Nieterau
1a10e0fc74 Hide animation instance in creator + add inventory action to recreate animation publish instance for loaded rigs 2023-04-19 18:01:43 +02:00
Jakub Ježek
864d1fc8e8
Merge branch 'develop' into feature/OP-5207_Global-host-color-management-activation 2023-04-17 12:30:53 +02:00
Jakub Jezek
4148788761
removing obsolete settings
all of those settings were now driven form global hook`pre_ocio_hook.py` which is activating OCIO environment variable
2023-04-17 12:16:37 +02:00
Jakub Jezek
b8ee128bc0
imageio: adding use_ocio_config toggle 2023-04-17 12:00:31 +02:00
Toke Stuart Jepsen
281f6186e4 Merge branch 'develop' into enhancement/OP-3807_playblast_profiles
# Conflicts:
#	openpype/hosts/maya/plugins/create/create_review.py
2023-04-14 15:09:44 +01:00
Milan Kolar
158626ffbf
Merge pull request #4714 from tokejepsen/feature/OP-4994_defining-plugins-to-load-on-Maya-start 2023-04-14 15:11:27 +02:00
Toke Stuart Jepsen
4f79d7fab2 Merge branch 'develop' into enhancement/OP-3807_playblast_profiles
# Conflicts:
#	openpype/hosts/maya/api/lib.py
2023-04-13 11:40:02 +01:00
Jakub Jezek
ae0d6dd1b5
refactoring of settings for more explicitly communicated attributes 2023-04-12 17:25:41 +02:00
Ondřej Samohel
31f047e524
Merge branch 'develop' into feature/OP-5207_Global-host-color-management-activation 2023-04-12 15:21:58 +02:00
Thomas Fricard
446da3a8f9 modify settings to include default handles + hanldes by task type 2023-04-12 12:45:40 +02:00
Thomas Fricard
6a01b117fd add a with_handles option in maya settings 2023-04-12 12:45:40 +02:00
Thomas Fricard
c3651da644 remove with_handles options in project settings 2023-04-12 12:45:40 +02:00
Thomas Fricard
f98f59946e add a with_handles option in maya animation creator 2023-04-12 12:45:39 +02:00
Thomas Fricard
264f111eda modify default value for custom namespace settings 2023-04-07 15:17:02 +02:00
Thomas Fricard
a62ab4fcc0 don't need to instanciate gorup_name since it is passed in arguments 2023-04-07 15:15:29 +02:00
Thomas Fricard
f99cb4e2b3 separate custom namespace settings into two different fields 2023-04-07 15:12:52 +02:00
Thomas Fricard
307e57bbfd change variables name for template 2023-04-07 15:12:51 +02:00
Thomas Fricard
bad4f51653 set default value for reference loader naming 2023-04-07 15:11:02 +02:00
Thomas Fricard
f0a6c933ea create settings and doc for the custom naming of referenced assets in maya 2023-04-07 15:10:54 +02:00
Roy Nieterau
7bc2dc14af Match order of settings with Export UI of Arnold ASS in maya 2023-04-07 11:56:21 +02:00
Jakub Ježek
c2edc17ef2
Merge branch 'develop' into feature/OP-5207_Global-host-color-management-activation 2023-04-06 15:39:13 +02:00