Skip to content

create_setdress

CreateSetDress

Bases: MayaCreator

A grouped package of loaded content

Source code in client/ayon_maya/plugins/create/create_setdress.py
 7
 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
41
42
43
class CreateSetDress(plugin.MayaCreator):
    """A grouped package of loaded content"""

    identifier = "io.openpype.creators.maya.setdress"
    label = "Set Dress"
    product_type = "setdress"
    product_base_type = "setdress"
    icon = "cubes"
    exactSetMembersOnly = True
    shader = True
    default_variants = ["Main", "Anim"]

    description = "Create a Setdress - a MayaScene for sets or assemblies."

    def get_instance_attr_defs(self):
        return [
            BoolDef("exactSetMembersOnly",
                    label="Exact Set Members Only",
                    default=self.exactSetMembersOnly),
            BoolDef("shader",
                    label="Include shader",
                    default=self.shader)
        ]

    def get_detail_description(self):
        return inspect.cleandoc("""### Setdress

        The Setdress creator allows you to export a Maya Scene, usually
        containing multiple assets into a single package called a "setdress". 
        This is useful for organizing and managing complex scenes that require
        multiple assets to be loaded together - of potentially a variety of
        datatypes.

        It exports purely as a Maya Scene file (.ma or .mb) which can be
        loaded back into Maya preserving all the original data, making this
        a Maya-specific solution for set assembly and scene organization.
        """)