Commit graph

1769 commits

Author SHA1 Message Date
Ondřej Samohel
e331a07589
Merge pull request #5595 from BigRoy/bugfix/maya_validate_rig_sets 2023-09-08 09:56:41 +02:00
Roy Nieterau
0836b21116 Fix usage of out_SET and controls_SET since #5310 because they can now be prefixed
- Collect the rig sets only once (I've ordered it before Collect History so that the instance still contains less node, as an optimization)
- Also fixes a hard error when `out_SET` is not found, instead now only relevant `PublishValidationError` are raised to generate a nice report
2023-09-07 15:40:13 +02:00
Roy Nieterau
91a4ae5dfd Remove (not yet deprecated?) system_settings from apply_settings 2023-09-06 23:34:01 +02:00
Roy Nieterau
ba6dfc5ead Remove unused variables + tweak logs 2023-09-06 23:28:39 +02:00
Ondřej Samohel
c428a60543
Merge pull request #5561 from BigRoy/enhancement/maya_yeti_include_preview_attributes 2023-09-06 17:25:08 +02:00
Ondřej Samohel
d6570635cf
Merge pull request #5574 from BigRoy/bugfix/maya_create_yeti_cache_attribute_definition 2023-09-06 09:57:07 +02:00
Roy Nieterau
1b7e1aeed7 Fix attribute definitions for CreateYetiCache 2023-09-05 18:12:49 +02:00
Roy Nieterau
d36b2f1514 Merge remote-tracking branch 'upstream/develop' into enhancement/tweak_logging
# Conflicts:
#	openpype/plugins/publish/extract_hierarchy_to_ayon.py
2023-09-05 12:06:43 +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
Roy Nieterau
26ef5812b7 Skip viewport attributes on 'update' but preserve what artist tweaked after initial load 2023-09-04 13:42:01 +02:00
Roy Nieterau
90bfd0a79a Yeti Cache: Include viewport preview settings 2023-09-04 13:26:36 +02:00
Ondřej Samohel
859a620df7
Merge pull request #5525 from BigRoy/enhancement/maya_remove_validate_instance_attributes 2023-09-04 12:14:28 +02:00
Jakub Trllo
ad8186afb1
Merge pull request #5526 from BigRoy/enhancement/maya_validate_instance_in_context_refactor
Maya: Refactor/tweak Validate Instance In same Context plug-in
2023-09-01 17:46:44 +02:00
Jakub Trllo
cb3e83118b maya create plugins do not expecte system settings 2023-09-01 17:14:39 +02:00
Jakub Trllo
d047d8dfb7
Merge pull request #5522 from BigRoy/enhancement/maya_validate_plugin_attributes_optimize
Maya: Optimize validate plug-in path attributes
2023-09-01 16:09:01 +02:00
Jakub Trllo
6f683ee0b6
Merge pull request #5524 from BigRoy/bugfix/maya_validate_shape_zero_repair
Maya: Validate Shape Zero fix repair action + provide informational artist-facing report
2023-09-01 16:06:15 +02:00
Roy Nieterau
689da974c4 Removed apply_settings override to fix plugin settings actually being applied
This makes it so again that it's up to the studio admin to enable or disable the plug-in per project instead of whether the modeler's workfile just happened to have the current renderer set to arnold or not. Note that the plug-in is currently disabled by default in project settings.
2023-08-30 14:42:46 +02:00
Roy Nieterau
3b8df1ac2b Cache arnold mesh attribute defaults so multiple "model" instance don't try and retrieve the default values every time. 2023-08-30 14:29:40 +02:00
Roy Nieterau
3ee28bd1aa Avoid selection changes 2023-08-30 14:22:11 +02:00
Roy Nieterau
861b9849cb Ensure we only iterate ai* attributes that come from a plugin 2023-08-30 14:20:56 +02:00
Roy Nieterau
17f83a0ecc Avoid iterating over None if ai attributes for some reason do not exist 2023-08-30 14:17:16 +02:00
Roy Nieterau
0fa081dddb Ignore arnold attribute check if arnold is not loaded 2023-08-30 14:16:27 +02:00
Roy Nieterau
97f9cd4377 Do not warn about renderlayer instance being empty 2023-08-30 14:14:33 +02:00
Roy Nieterau
e9cb011c2a Remove unused attribute 2023-08-30 10:31:06 +02:00
Roy Nieterau
2b951d29f2 Maya: Tweak logging for artist-facing reports in publisher 2023-08-30 09:50:59 +02:00
Roy Nieterau
e809050f15 Re-use existing select invalid and repair actions, provide more elaborate PublishValidationError report, plus fix "optional" support by using OptionalPyblishPluginMixin base class. 2023-08-28 16:54:39 +02:00
Roy Nieterau
7a513cde9a Remove Validate Instance Attributes
The new publisher always updates and imprints the publish instances with the latest Attribute Definitions of the Creator, thus making this legacy validator redundant. Currently legacy instances do not work through the new publisher (they need to be converted to work correctly) and thus even for legacy workfiles this validator is redundant.
2023-08-28 16:29:52 +02:00
Roy Nieterau
afebe08837 Refactor to PublishValidationError to allow the RepairAction to work + provide informational report message 2023-08-28 16:23:36 +02:00
Roy Nieterau
d491b4f18b Optimize query (use cmds.ls once), add Select Invalid action, improve validation report, avoid "Unknown object type" errors 2023-08-28 14:28:31 +02:00
Jakub Jezek
93f897c780
deadline: adding collect farm target and removing redundant key 2023-08-24 13:59:34 +02:00
Petr Kalis
a63fef653d
Context plugin shouldn't be tied to family (#5464) 2023-08-21 10:32:32 +02:00
Petr Kalis
c5d882c7ea
Maya: Fix wrong subset name of render family in deadline (#5442)
* Use existing subset_name as group_name by default

New publisher already carries real subset name (`renderModelingMain`), it should build group name only if subset_name is weird.

* Let legacy conversion of render instance recreate subset_name

Without it would create subset names like `renderingMain` which are not matching to newly created `renderMain` instances. This would cause issue in version restarts.

* Let Render Creator for Maya create proper subset_name

It was using hardcoded logic not matching other DCCs.

* Hound

* Fix method calls

* Fix typos

* Do not import unnecessary

* Capitalize is wrong function for here

* Overwrite get_subset_name for standardized results

It makes sense to override this method for other parts of code getting same results.

* Force change

It seems that GH doesn't recognize changes with adding()

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

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

* Hound

---------

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-08-17 10:33:52 +02:00
Petr Kalis
328c3d9c7f
OP-6567 - fix setting of version to workfile instance (#5452)
If there are multiple instances of renderlayer published, previous logic resulted in unpredictable rewrite of instance family to 'workfile'
2023-08-16 16:16:21 +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
Petr Kalis
7d40debd64
Maya: do not create top level group on reference (#5402)
* OP-6358 - allow not creation of group for reference loader in Maya

Creation of wrapping group could be controlled by checkbox in ReferenceLoader options.

* OP-6358 - group name could be empty in Settings

This enables default behavior of not creating wrapping group without need of artists unchecking `Group imported assets`.

* OP-6358 - changed to safer logic

Stripping of | was weird and potentially dangerous (collision of names), this logic should be safer.
2023-08-08 11:00:02 +02:00
Mustafa Zarkash
40037b050c
update defaults variables (#5368) 2023-07-31 15:01:18 +02:00
Milan Kolar
f22d28808b
Merge pull request #5336 from tokejepsen/bugfix/maya_validate_model_content 2023-07-31 09:51:47 +02:00
Milan Kolar
6deace97d6
Merge pull request #5296 from ynput/bugfix/maya_validate_frame_rang_fix 2023-07-27 22:56:33 +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
Milan Kolar
45f0fcff00
Merge pull request #5310 from quadproduction/enhancement/522-error-on-multiple-instance-rig-publication 2023-07-27 10:04:39 +02:00
Milan Kolar
93260948bf
Merge pull request #5297 from tokejepsen/bugfix/maya_include_disabled_plugins 2023-07-27 09:55:53 +02:00
Milan Kolar
0b58144f2c
Merge pull request #5303 from tokejepsen/bugfix/maya_creators_apply_settings 2023-07-27 09:14:43 +02:00
Toke Jepsen
503e049dd9
Fix rig selection sets naming (#539) 2023-07-24 13:22:53 +02:00
Toke Stuart Jepsen
441618974e All review publish attributes should be copied to model instance 2023-07-22 10:19:47 +01:00
Toke Stuart Jepsen
f91189fdf3 Use MayaHiddenCreator 2023-07-21 12:18:16 +01:00
Toke Stuart Jepsen
3b23bf9f1f Merge branch 'develop' into bugfix/maya_include_disabled_plugins 2023-07-21 11:28:40 +01:00
Toke Stuart Jepsen
67cd2ff650 Fix fetching top level parents 2023-07-21 11:07:04 +01:00
Toke Stuart Jepsen
a79eca9980 Add new publisher error raising 2023-07-21 11:00:04 +01:00
Toke Stuart Jepsen
0d0681f621 Hardcode enabled state 2023-07-17 15:45:17 +01:00
clement.hector
363af956d4 replace endswith by startswith in rig outputs id
need this one for publish multiple rig in one asset.
2023-07-17 15:56:01 +02:00