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

Maya: OP-2630 acescg maya #4340

Merged

Conversation

tokejepsen
Copy link
Member

@tokejepsen tokejepsen commented Jan 18, 2023

Brief description

Resolves #2712

Additional info

This grabs OCIO colour data and injects as colorspaceData to transcode between colourspaces.

This builds on #4195 and #4291

Testing Steps

  1. Setup recommended output profile project_settings/global/publish/ExtractOIIOTranscode/profiles
    Capture
  2. Setup render in Maya.
  3. Publish to Deadline.

kalisp and others added 18 commits January 16, 2023 13:44
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
Added method to convert from one colorspace to another to transcoding lib
Only frames currently supported.
Implemented multiple outputs from single input representation
Do not use warning unnecessary.
…tor-plugin' into enchancement/OP-2630_acescg_maya

# Conflicts:
#	openpype/plugins/publish/extract_color_transcode.py
…tor-plugin' into enchancement/OP-2630_acescg_maya

# Conflicts:
#	openpype/plugins/publish/extract_color_transcode.py
…ribution' into enchancement/OP-2630_acescg_maya
@tokejepsen tokejepsen added type: enhancement Enhancements to existing functionality host: Maya labels Jan 18, 2023
@tokejepsen tokejepsen self-assigned this Jan 18, 2023
@jakubjezek001
Copy link
Member

Copy link

@hound hound bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/local/bin/flake8", line 8, in 
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/cli.py", line 18, in main
    app.run(argv)
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 393, in run
    self._run(argv)
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 381, in _run
    self.run_checks()
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 300, in run_checks
    self.file_checker_manager.run()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 331, in run
    self.run_serial()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 315, in run_serial
    checker.run_checks()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 598, in run_checks
    self.run_ast_checks()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 502, in run_ast_checks
    for (line_number, offset, text, check) in runner:
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 56, in run
    parser.visit(self.tree)
  File "/usr/lib/python3.8/ast.py", line 371, in visit
    return visitor(node)
  File "/usr/lib/python3.8/ast.py", line 379, in generic_visit
    self.visit(item)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 39, in visit_ClassDef
    self.capture_issues_visitor('ClassDef', node)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 33, in capture_issues_visitor
    self.generic_visit(node)
  File "/usr/lib/python3.8/ast.py", line 381, in generic_visit
    self.visit(value)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 36, in visit_Call
    self.capture_issues_visitor('Call', node)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 30, in capture_issues_visitor
    issues = checker.run(node)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checkers/render.py", line 22, in run
    if isinstance(arg, ast.Call) and arg.func.id == 'locals':
AttributeError: 'Attribute' object has no attribute 'id'

@BigRoy
Copy link
Collaborator

BigRoy commented Jan 18, 2023

Is this PR to the wrong branch? There's a huge list of changes. :)

@tokejepsen
Copy link
Member Author

Is this PR to the wrong branch? There's a huge list of changes. :)

Its build on #4195 and #4291, which are not merged into develop yet.

@BigRoy
Copy link
Collaborator

BigRoy commented Jan 18, 2023

Ok thanks - it's good to note that those also don't seem to be merging into develop but into the 3.15.x branch.

@jakubjezek001 jakubjezek001 changed the base branch from develop to release/3.15.x January 18, 2023 12:36
@tokejepsen tokejepsen removed the request for review from antirotor February 17, 2023 07:18
@mkolar mkolar assigned antirotor and unassigned tokejepsen Feb 17, 2023
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.

Looks great. Just one question - if we are adding colorspace information to instances (per AOV in Maya), how do we handle cases where color information is not needed or is not even desired. Like data type AOVs - point positions, normals etc. we don't want any conversions on them, yet if I am not mistaken, they'll inherit colorspace from the context? We don't produce reviewable from them, but thumbnails yes - if the file has data in rgba channels.

@tokejepsen
Copy link
Member Author

Looks great. Just one question - if we are adding colorspace information to instances (per AOV in Maya), how do we handle cases where color information is not needed or is not even desired. Like data type AOVs - point positions, normals etc. we don't want any conversions on them, yet if I am not mistaken, they'll inherit colorspace from the context? We don't produce reviewable from them, but thumbnails yes - if the file has data in rgba channels.

Good point. I'll test a workflow for this, but think we can avoid conversion with a targeted profile.

@tokejepsen
Copy link
Member Author

Looks great. Just one question - if we are adding colorspace information to instances (per AOV in Maya), how do we handle cases where color information is not needed or is not even desired. Like data type AOVs - point positions, normals etc. we don't want any conversions on them, yet if I am not mistaken, they'll inherit colorspace from the context? We don't produce reviewable from them, but thumbnails yes - if the file has data in rgba channels.

With targeted profiles we can avoid transcoding of the render passes. Something like this;

Capture

@mkolar mkolar assigned tokejepsen and unassigned antirotor Feb 21, 2023
@mkolar
Copy link
Member

mkolar commented Feb 21, 2023

@tokejepsen please resolve the conflict and we can merge

@tokejepsen
Copy link
Member Author

@tokejepsen please resolve the conflict and we can merge

Shouldnt merge until #4291 is merged.

@tokejepsen tokejepsen marked this pull request as draft February 22, 2023 06:39
…tor-plugin' into enchancement/OP-2630_acescg_maya
# Conflicts:
#	openpype/hosts/maya/api/lib_renderproducts.py
# Conflicts:
#	openpype/hosts/maya/api/lib_renderproducts.py
@tokejepsen tokejepsen marked this pull request as ready for review February 23, 2023 15:57
@tokejepsen tokejepsen assigned mkolar and unassigned tokejepsen Feb 23, 2023
@tokejepsen
Copy link
Member Author

@mkolar ready to merge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Maya type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quick way to produce reviews from ACEScg Maya renders
7 participants