Skip to content

meta

Metadata traits.

IntendedUse dataclass

Bases: TraitBase

Intended use of the representation.

This trait describes the intended use of the representation. It can be used in cases where the other traits are not enough to describe the intended use. For example, a txt file with tracking points can be used as a corner pin in After Effect but not in Nuke.

Attributes:

Name Type Description
use str

Intended use description.

Source code in client/ayon_core/pipeline/traits/meta.py
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
@dataclass
class IntendedUse(TraitBase):
    """Intended use of the representation.

    This trait describes the intended use of the representation. It
    can be used in cases where the other traits are not enough to
    describe the intended use. For example, a txt file with tracking
    points can be used as a corner pin in After Effect but not in Nuke.

    Attributes:
        use (str): Intended use description.

    """
    name: ClassVar[str] = "IntendedUse"
    description: ClassVar[str] = "Intended Use Trait Model"
    id: ClassVar[str] = "ayon.meta.IntendedUse.v1"
    persistent: ClassVar[bool] = True
    use: str

KeepOriginalLocation dataclass

Bases: TraitBase

Keep files in its original location.

Note

This is not a persistent trait.

Source code in client/ayon_core/pipeline/traits/meta.py
86
87
88
89
90
91
92
93
94
95
96
97
@dataclass
class KeepOriginalLocation(TraitBase):
    """Keep files in its original location.

    Note:
        This is not a persistent trait.

    """
    name: ClassVar[str] = "KeepOriginalLocation"
    description: ClassVar[str] = "Keep Original Location Trait Model"
    id: ClassVar[str] = "ayon.meta.KeepOriginalLocation.v1"
    persistent: ClassVar[bool] = False

KeepOriginalName dataclass

Bases: TraitBase

Keep files in its original name.

Note

This is not a persistent trait.

Source code in client/ayon_core/pipeline/traits/meta.py
100
101
102
103
104
105
106
107
108
109
110
111
@dataclass
class KeepOriginalName(TraitBase):
    """Keep files in its original name.

    Note:
        This is not a persistent trait.
    """

    name: ClassVar[str] = "KeepOriginalName"
    description: ClassVar[str] = "Keep Original Name Trait Model"
    id: ClassVar[str] = "ayon.meta.KeepOriginalName.v1"
    persistent: ClassVar[bool] = False

SourceApplication dataclass

Bases: TraitBase

Metadata about the source (producing) application.

This can be useful in cases where this information is needed, but it cannot be determined from other means - like .txt files used for various motion tracking applications that must be interpreted by the loader.

Note that this is not really connected to any logic in ayon-applications addon.

Attributes:

Name Type Description
application str

Application name.

variant str

Application variant.

version str

Application version.

platform str

Platform name (Windows, darwin, etc.).

host_name str

AYON host name if applicable.

Source code in client/ayon_core/pipeline/traits/meta.py
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
@dataclass
class SourceApplication(TraitBase):
    """Metadata about the source (producing) application.

    This can be useful in cases where this information is
    needed, but it cannot be determined from other means - like
    .txt files used for various motion tracking applications that
    must be interpreted by the loader.

    Note that this is not really connected to any logic in
    ayon-applications addon.

    Attributes:
        application (str): Application name.
        variant (str): Application variant.
        version (str): Application version.
        platform (str): Platform name (Windows, darwin, etc.).
        host_name (str): AYON host name if applicable.
    """

    name: ClassVar[str] = "SourceApplication"
    description: ClassVar[str] = "Source Application Trait Model"
    id: ClassVar[str] = "ayon.meta.SourceApplication.v1"
    persistent: ClassVar[bool] = True
    application: str
    variant: Optional[str] = None
    version: Optional[str] = None
    platform: Optional[str] = None
    host_name: Optional[str] = None

Tagged dataclass

Bases: TraitBase

Tagged trait model.

This trait can hold a list of tags.

Example::

Tagged(tags=["tag1", "tag2"])

Attributes:

Name Type Description
name str

Trait name.

description str

Trait description.

id str

id should be a namespaced trait name with version

tags List[str]

Tags.

Source code in client/ayon_core/pipeline/traits/meta.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@dataclass
class Tagged(TraitBase):
    """Tagged trait model.

    This trait can hold a list of tags.

    Example::

        Tagged(tags=["tag1", "tag2"])

    Attributes:
        name (str): Trait name.
        description (str): Trait description.
        id (str): id should be a namespaced trait name with version
        tags (List[str]): Tags.
    """

    name: ClassVar[str] = "Tagged"
    description: ClassVar[str] = "Tagged Trait Model"
    id: ClassVar[str] = "ayon.meta.Tagged.v1"
    persistent: ClassVar[bool] = True
    tags: List[str]

TemplatePath dataclass

Bases: TraitBase

TemplatePath trait model.

This model represents a template path with formatting data. Template path can be an Anatomy template and data is used to format it.

Example::

TemplatePath(template="path/{key}/file", data={"key": "to"})

Attributes:

Name Type Description
name str

Trait name.

description str

Trait description.

id str

id should be a namespaced trait name with version

template str

Template path.

data dict[str]

Formatting data.

Source code in client/ayon_core/pipeline/traits/meta.py
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@dataclass
class TemplatePath(TraitBase):
    """TemplatePath trait model.

    This model represents a template path with formatting data.
    Template path can be an Anatomy template and data is used to format it.

    Example::

        TemplatePath(template="path/{key}/file", data={"key": "to"})

    Attributes:
        name (str): Trait name.
        description (str): Trait description.
        id (str): id should be a namespaced trait name with version
        template (str): Template path.
        data (dict[str]): Formatting data.
    """

    name: ClassVar[str] = "TemplatePath"
    description: ClassVar[str] = "Template Path Trait Model"
    id: ClassVar[str] = "ayon.meta.TemplatePath.v1"
    persistent: ClassVar[bool] = True
    template: str
    data: dict

Variant dataclass

Bases: TraitBase

Variant trait model.

This model represents a variant of the representation.

Example::

Variant(variant="high")
Variant(variant="prores444)

Attributes:

Name Type Description
name str

Trait name.

description str

Trait description.

id str

id should be a namespaced trait name with version

variant str

Variant name.

Source code in client/ayon_core/pipeline/traits/meta.py
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
@dataclass
class Variant(TraitBase):
    """Variant trait model.

    This model represents a variant of the representation.

    Example::

        Variant(variant="high")
        Variant(variant="prores444)

    Attributes:
        name (str): Trait name.
        description (str): Trait description.
        id (str): id should be a namespaced trait name with version
        variant (str): Variant name.
    """

    name: ClassVar[str] = "Variant"
    description: ClassVar[str] = "Variant Trait Model"
    id: ClassVar[str] = "ayon.meta.Variant.v1"
    persistent: ClassVar[bool] = True
    variant: str