Commit graph

373 commits

Author SHA1 Message Date
Ondřej Samohel
d9c8950f34 🐛 fix asset path use in maya skeletal mesh 2023-11-16 16:26:28 +01:00
Jakub Trllo
da8285d2ce fix create multishot layout 2023-11-15 12:25:06 +01:00
Jakub Trllo
7f5986a683 fix maya workfile creator 2023-11-07 11:43:08 +01:00
Jakub Trllo
49154c0750 fix create multishot layout 2023-11-03 16:45:12 +01:00
Jakub Trllo
7942e33a11 be expicit about source of asset and folder path 2023-10-25 12:01:58 +02:00
Jakub Trllo
a5056ea3fb modified maya to follow new usage of 'asset' value 2023-10-24 18:09:43 +02:00
Ondrej Samohel
4bb51b91de
💡 rewrite todo comment to make it more clear 2023-10-16 10:09:39 +02:00
Ondrej Samohel
5bcbf80d12
♻️ remove unused code 2023-10-16 10:02:55 +02:00
Ondrej Samohel
94032f0522
🐛 convert generator to list 2023-10-13 17:39:29 +02:00
Ondrej Samohel
8f5a5341e0
♻️ improve error message 2023-10-13 15:55:07 +02:00
Ondrej Samohel
5914f2e23c
♻️ remove restriction for "Shot" folder type 2023-10-13 15:54:12 +02:00
Ondrej Samohel
6382867174
♻️ move list creation closer to the caller 2023-10-11 13:29:56 +02:00
Ondrej Samohel
ac9f08edf6
♻️ use long arguments 2023-10-09 16:05:52 +02:00
Ondrej Samohel
77a0930ed0
🐶 happy dog 2023-10-09 15:51:31 +02:00
Ondrej Samohel
8168c96ae5
♻️ some more fixes 2023-10-09 15:44:59 +02:00
Ondrej Samohel
931d847f89
♻️ fix readability of the code 2023-10-06 18:32:29 +02:00
Ondrej Samohel
435ff3389f
🐶 calm the hound 2023-10-06 15:39:35 +02:00
Ondrej Samohel
5ac109a7ae
🎨 add task name option 2023-10-06 15:21:04 +02:00
Ondrej Samohel
cfe72fb2b2
Merge remote-tracking branch 'origin/develop' into feature/OP-6460_maya-multishot-layout 2023-10-05 13:39:37 +02:00
Kayla
7967e9b0b9 Merge branch 'develop' into enhancement/OP-6629_Maya-Export-Rig-Animation-as-FBX 2023-10-01 20:18:10 +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
bdde5c93c7 Merge branch 'develop' into enhancement/OP-6629_Maya-Export-Rig-Animation-as-FBX 2023-09-29 23:11:47 +08:00
Kayla
37cefd892c abstract namespaced functions for extract fbx animation and add fbx loaders in animatin family 2023-09-29 18:26:58 +08:00
Kayla
dda932e83e code clean up and tweak on debug mesg 2023-09-28 22:37:30 +08:00
Simone Barbieri
5cf8fdbb6c Do not use version in the import folder 2023-09-25 10:45:28 +01:00
Simone Barbieri
4c854600cb Renamed family to yeticacheUE 2023-09-25 10:07:37 +01:00
Kayla
a0d459eb69 Merge branch 'develop' into enhancement/OP-6629_Maya-Export-Rig-Animation-as-FBX 2023-09-24 13:11:37 +08:00
Kayla
277f876d19 Merge branch 'develop' into enhancement/OP-6629_Maya-Export-Rig-Animation-as-FBX 2023-09-24 13:08:14 +08:00
Simone Barbieri
d498afbf48 New family ue_yeticache, new creator and extractor 2023-09-22 15:24:17 +01:00
Ondřej Samohel
e6ce9fd9e1
Merge pull request #5573 from BigRoy/feature/maya_usd_native_support 2023-09-19 17:15:36 +02:00
Milan Kolar
a3e6f0fddf
Merge pull request #5566 from BigRoy/bugfix/maya_create_multiverse_usd_over_inheritance 2023-09-19 00:09:15 +02:00
Ondrej Samohel
24f1a7a958
Merge remote-tracking branch 'origin/develop' into feature/OP-6460_maya-multishot-layout 2023-09-14 12:57:28 +02:00
Toke Jepsen
d595d12b78
Merge branch 'develop' into bugfix/OP-5375_Extract-look-is-not-AYON-compatible 2023-09-14 09:26:14 +01:00
Kayla Man
6f23755873 make sure the rig family has published fbx and file version should be 2022 2023-09-12 19:48:36 +08:00
Ondrej Samohel
7f2e5e8fa9
♻️ multishot layout creator WIP
still need to add Task information to created layouts
2023-09-08 18:49:12 +02:00
Ondrej Samohel
684ce0fc7d
🎨 WIP on the creator 2023-09-07 17:40:01 +02:00
Kayla Man
2e36f7fc47 hound 2023-09-07 20:48:19 +08:00
Kayla Man
d58b5a42f7 implment fbx extractors in both animation and rig family 2023-09-07 20:46:39 +08:00
Kayla Man
b54f263d4b hound 2023-09-07 14:55:52 +08:00
Kayla Man
da7c47ab2f add fbx extractors and new sets in rig family 2023-09-07 14:47:22 +08:00
Roy Nieterau
d5823ab556 Add a few tooltips 2023-09-06 18:08:51 +02:00
Roy Nieterau
f1267546d2 Avoid error if no job contexts are available 2023-09-06 18:02:24 +02:00
Roy Nieterau
1ad404100c Merge remote-tracking branch 'upstream/develop' into feature/maya_usd_native_support 2023-09-06 16:11:08 +02:00
Roy Nieterau
a0f7951ea3 Add job context parameter to USD publisher
E.g. You can now directly export with a `Arnold` job context (if it's registered) so that the USD export is Arnold supported and directly renderable with shaders/render attributes by Arnold renderer.
2023-09-06 16:02:46 +02:00
Roy Nieterau
f4a0ab45e4 Allow exporting custom attributes with mayaUSDExport 2023-09-05 23:10:32 +02:00
Roy Nieterau
1b7e1aeed7 Fix attribute definitions for CreateYetiCache 2023-09-05 18:12:49 +02:00
Roy Nieterau
5c12d9c862 Remove commented out attribute definitions 2023-09-05 18:04:21 +02:00
Roy Nieterau
8ceedd7b60 Draft for implementing a native Maya USD creator next to the Multiverse USD creator 2023-09-05 17:56:09 +02:00
Roy Nieterau
6c1385e2c9 Inherit from correct new style creator 2023-09-04 23:49:54 +02:00
Jakub Trllo
cb3e83118b maya create plugins do not expecte system settings 2023-09-01 17:14:39 +02:00