Skip to content

create_layout

CreateLayout

Bases: MayaCreator

A grouped package of loaded content

Source code in client/ayon_maya/plugins/create/create_layout.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
44
class CreateLayout(plugin.MayaCreator):
    """A grouped package of loaded content"""

    identifier = "io.openpype.creators.maya.layout"
    label = "Layout"
    product_type = "layout"
    product_base_type = "layout"
    icon = "cubes"

    description = "Create a Layout - a grouped package of loaded content"

    def get_instance_attr_defs(self):

        return [
            BoolDef("allowObjectTransforms",
                    label="Include Children Transforms",
                    tooltip="Enable this when include all the transform data"
                            "of objects"
                    )
        ]

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

        The Layout creator will collect all included loaded assets and their
        positioning and export them as a single `.json` package so they can
        be loaded as individual products again in Maya, or other DCCs 
        supporting the `layout` product.

        A Maya Scene is also written alongside the JSON package to facilitate
        quick loading and previewing of the full layout in Maya, but if you
        solely need the Maya content perhaps the Set Dress creator is the 
        better fit.

        Note that any vertex deformations (like vertex edits, blendshapes or 
        deformers) will not be stored as edits. Loading a Layout will purely
        consider the collect transform data and the referenced assets.
        """)