AcademySoftwareFoundation / AcademySoftwareFoundation/MaterialX

Proposal: Add a default unit option

Open
#2,005 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.3k
Forks
451
Avg merge
4d 11h
Merged PRs (30d)
8

Description

## Issue

Currently there is no way to specify a `unit type` on a input/output and have it indicate to use the
current scene unit. An explicit `unit` from the corresponding `unittypedef` must be used.

It is possible with other meta-data such as `colorspace`.

## Proposal

- Allow for a "none" value to be supported for `unit` as with `colorspace`
- The meta-data can thus be saved to / or read from a document without having a specific unit transform specified.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating the existing `colorspace` metadata handling and the `unit`/`unittypedef` definitions, then compare how metadata is saved to and read from a document. Done means `unit` accepts `none` without requiring a specific unit transform and preserves that value through document I/O.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.