Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Maya: Use client query functions #3385

Merged
merged 6 commits into from
Jun 22, 2022

Conversation

iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Jun 21, 2022

Brief description

Modified Maya host to use query functions from PR. Also small tweaks in code related to using the functions which in some cases can make the process faster.

Description

Use query functions from openpype.client. Some functions were modified to be able match to functions abilities or were enhanced by reducing queries. Most of places used during publishing are using assetEntity instead of querying it again by name.

Testing notes:

  • Generate uuids action should work (on validators)
  • Setdress workflow
  • Look assignment workflow
  • Load look
  • Load audio
  • Load image plane

@ynbot
Copy link
Contributor

ynbot commented Jun 21, 2022

Task linked: OP-3374 Use query functions in Maya

@iLLiCiTiT iLLiCiTiT self-assigned this Jun 21, 2022
@iLLiCiTiT iLLiCiTiT added host: Maya type: refactor Structural changes not affecting functionality labels Jun 21, 2022
@antirotor
Copy link
Member

Only loading image plane doesn't work but that might be related to #3067

Traceback (most recent call last):
  File "C:\Users\annat\Documents\pype\3.0\openpype\tools\loader\widgets.py", line 1556, in _load_representations_by_loader
    options=options
  File "C:\Users\annat\Documents\pype\3.0\openpype\pipeline\load\utils.py", line 285, in load_with_repre_context
    return loader.load(repre_context, name, namespace, options)
  File "C:\Users\annat\Documents\pype\3.0\openpype\hosts\maya\plugins\load\load_image_plane.py", line 184, in load
    image_plane_shape.listConnections(type="expression")[0]
IndexError: list index out of range

@iLLiCiTiT
Copy link
Member Author

Only loading image plane doesn't work but that might be related to #3067

So it's not working even in develop? Can I do somthing about it?

Copy link
Member

@antirotor antirotor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appart of image plane loader that was broken before everything seems to work.

@iLLiCiTiT iLLiCiTiT merged commit a916488 into develop Jun 22, 2022
@iLLiCiTiT iLLiCiTiT deleted the feature/OP-3374_Use-query-functions-in-Maya branch June 22, 2022 08:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Maya type: refactor Structural changes not affecting functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants