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

Maya: Validate Camera Contents Pyblish Select Invalid #3026

Closed
m-u-r-p-h-y opened this issue Apr 6, 2022 · 0 comments · Fixed by #3030
Closed

Maya: Validate Camera Contents Pyblish Select Invalid #3026

m-u-r-p-h-y opened this issue Apr 6, 2022 · 0 comments · Fixed by #3030
Assignees
Labels
host: Maya type: bug Something isn't working

Comments

@m-u-r-p-h-y
Copy link
Member

m-u-r-p-h-y commented Apr 6, 2022

Describe the bug

Select Invalid in failed validator is broken.

To Reproduce
Steps to reproduce the behavior:

  1. Create a camera instance with the wrong data selected (group, geometry, etc.)
  2. Publish
  3. Run validators
  4. Select Invalid in failed camera validator

Screenshots
image

// pyblish.pyblish.plugin.Action : Finding invalid nodes.. // 
// Warning: pyblish.ValidateCameraContents : Camera instance must have a single camera. Found 0: [] // 
// Error: pyblish.plugin : Traceback (most recent call last):
  File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
    runner(*args)
  File "D:\REPO\OpenPype\openpype\hosts\maya\api\action.py", line 111, in process
    invalid_nodes = plugin.get_invalid(instance)
  File "D:\REPO\OpenPype\openpype\hosts\maya\plugins\publish\validate_camera_contents.py", line 43, in get_invalid
RuntimeError: No cameras in instance.
Traceback (most recent call last):
  File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
    runner(*args)
  File "D:\REPO\OpenPype\openpype\hosts\maya\api\action.py", line 111, in process
    invalid_nodes = plugin.get_invalid(instance)
  File "<string>", line 43, in get_invalid
RuntimeError: No cameras in instance. // 

[cuID:]

@m-u-r-p-h-y m-u-r-p-h-y added type: bug Something isn't working host: Maya labels Apr 6, 2022
@BigRoy BigRoy changed the title Maya Pyblish Select Invalid Maya: Validate Camera Contents Pyblish Select Invalid Apr 7, 2022
@BigRoy BigRoy self-assigned this Apr 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Maya type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants