Skip to content

YN-0146: nuke load exr with deep type autodetect #153

@ynbot

Description

@ynbot

Please describe the feature you have in mind and explain what the current shortcomings are?

Nuke can autodetect whether an EXR representation is typed as Deep image. This way we could avoid manual deep toggle in Loader options. And rather autoread it to deep reader. 

Client is suggesting deep exr type in discord link.

import OpenEXR

DEEP_EXR_TYPES = {OpenEXR.deepscanline, OpenEXR.deeptile}


def is_deep_exr(filename: str) -> bool:
    with OpenEXR.File(filename) as infile:
        header = infile.header()
        file_type = header.get("type")

        is_deep = file_type in DEEP_EXR_TYPES
        print(f"{is_deep=}")
        return is_deep

Questions to solve:

Additional context:

link to discussion on Discord
(might be a private channel)

This issue was automatically created from AYON ticket YN-0146

Metadata

Metadata

Assignees

Labels

sponsoredThis is directly sponsored by a client or community member

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions