Skip to content

create_unreal_yeticache

CreateUnrealYetiCache

Bases: MayaCreator

Output for procedural plugin nodes of Yeti

Source code in client/ayon_maya/plugins/create/create_unreal_yeticache.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class CreateUnrealYetiCache(plugin.MayaCreator):
    """Output for procedural plugin nodes of Yeti """

    identifier = "io.openpype.creators.maya.unrealyeticache"
    label = "Unreal - Yeti Cache"
    product_type = "yeticacheUE"
    icon = "pagelines"

    def get_instance_attr_defs(self):

        defs = [
            NumberDef("preroll",
                      label="Preroll",
                      minimum=0,
                      default=0,
                      decimals=0)
        ]

        # Add animation data without step and handles
        defs.extend(lib.collect_animation_defs(
            create_context=self.create_context))
        remove = {"step", "handleStart", "handleEnd"}
        defs = [attr_def for attr_def in defs if attr_def.key not in remove]

        # Add samples after frame range
        defs.append(
            NumberDef("samples",
                      label="Samples",
                      default=3,
                      decimals=0)
        )

        return defs