Skip to content

create_proxy_abc

CreateProxyAlembic

Bases: MayaCreator

Proxy Alembic for animated data

Source code in client/ayon_maya/plugins/create/create_proxy_abc.py
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
41
42
43
44
45
46
47
48
49
50
class CreateProxyAlembic(plugin.MayaCreator):
    """Proxy Alembic for animated data"""

    identifier = "io.openpype.creators.maya.proxyabc"
    label = "Proxy Alembic"
    product_type = "proxyAbc"
    icon = "gears"
    write_color_sets = False
    write_face_sets = False

    def get_instance_attr_defs(self):

        defs = lib.collect_animation_defs()

        defs.extend([
            BoolDef("writeColorSets",
                    label="Write vertex colors",
                    tooltip="Write vertex colors with the geometry",
                    default=self.write_color_sets),
            BoolDef("writeFaceSets",
                    label="Write face sets",
                    tooltip="Write face sets with the geometry",
                    default=self.write_face_sets),
            BoolDef("worldSpace",
                    label="World-Space Export",
                    default=True),
            TextDef("nameSuffix",
                    label="Name Suffix for Bounding Box",
                    default="_BBox",
                    placeholder="_BBox"),
            TextDef("attr",
                    label="Custom Attributes",
                    default="",
                    placeholder="attr1, attr2"),
            TextDef("attrPrefix",
                    label="Custom Attributes Prefix",
                    placeholder="prefix1, prefix2")
        ])

        return defs