mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
✨ add SourceApplication trait
This commit is contained in:
parent
6ffe6af5b8
commit
e44901e53e
2 changed files with 17 additions and 4 deletions
|
|
@ -165,6 +165,7 @@ to different packages based on their use:
|
|||
| | Variant | Used to differentiate between data variants of the same output (mp4 as h.264 and h.265 for example)
|
||||
| | KeepOriginalLocation | Marks the representation to keep the original location of the file
|
||||
| | KeepOriginalName | Marks the representation to keep the original name of the file
|
||||
| | SourceApplication | Holds information about producing application, about it's version, variant and platform.
|
||||
| three dimensional | Spatial | Spatial information like up-axis, units and handedness.
|
||||
| | Geometry | Type trait to mark the representation as a geometry.
|
||||
| | Shader | Type trait to mark the representation as a Shader.
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class Variant(TraitBase):
|
|||
|
||||
class KeepOriginalLocation(TraitBase):
|
||||
"""Keep files in its original location.
|
||||
|
||||
|
||||
Note:
|
||||
This is not a persistent trait.
|
||||
|
||||
|
|
@ -86,11 +86,11 @@ class KeepOriginalLocation(TraitBase):
|
|||
name: ClassVar[str] = "KeepOriginalLocation"
|
||||
description: ClassVar[str] = "Keep Original Location Trait Model"
|
||||
id: ClassVar[str] = "ayon.meta.KeepOriginalLocation.v1"
|
||||
persistent: bool = Field(False, title="Persistent")
|
||||
persistent: bool = Field(default=False, title="Persistent")
|
||||
|
||||
class KeepOriginalName(TraitBase):
|
||||
"""Keep files in its original name.
|
||||
|
||||
|
||||
Note:
|
||||
This is not a persistent trait.
|
||||
|
||||
|
|
@ -98,4 +98,16 @@ class KeepOriginalName(TraitBase):
|
|||
name: ClassVar[str] = "KeepOriginalName"
|
||||
description: ClassVar[str] = "Keep Original Name Trait Model"
|
||||
id: ClassVar[str] = "ayon.meta.KeepOriginalName.v1"
|
||||
persistent: bool = Field(False, title="Persistent")
|
||||
persistent: bool = Field(default=False, title="Persistent")
|
||||
|
||||
|
||||
class SourceApplication(TraitBase):
|
||||
"""Metadata about the source (producing) application."""
|
||||
|
||||
name: ClassVar[str] = "SourceApplication"
|
||||
description: ClassVar[str] = "Source Application Trait Model"
|
||||
id: ClassVar[str] = "ayon.meta.SourceApplication.v1"
|
||||
application: str = Field(..., title="Application Name")
|
||||
variant: str = Field(..., title="Application Variant (e.g. Pro)")
|
||||
version: str = Field(..., title="Application Version")
|
||||
platform: str = Field(..., title="Platform Name")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue