Skip to content

create_placeholder

SilhouettePlaceholderCreatePlugin

Bases: SilhouettePlaceholderPlugin, PlaceholderCreateMixin

Source code in client/ayon_silhouette/plugins/workfile_build/create_placeholder.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
class SilhouettePlaceholderCreatePlugin(
    SilhouettePlaceholderPlugin, PlaceholderCreateMixin
):
    identifier = "silhouette.placeholder.create"
    label = "Silhouette create"

    item_class = CreatePlaceholderItem

    def populate_placeholder(self, placeholder):
        self.populate_create_placeholder(placeholder)

    def repopulate_placeholder(self, placeholder):
        self.populate_create_placeholder(placeholder)

    def get_placeholder_options(self, options=None):
        return self.get_create_plugin_options(options)

    def post_placeholder_process(self, placeholder, failed):
        """Cleanup placeholder after load of its corresponding representations.

        Args:
            placeholder (PlaceholderItem): Item which was just used to load
                representation.
            failed (bool): Loading of representation failed.
        """
        pass

post_placeholder_process(placeholder, failed)

Cleanup placeholder after load of its corresponding representations.

Parameters:

Name Type Description Default
placeholder PlaceholderItem

Item which was just used to load representation.

required
failed bool

Loading of representation failed.

required
Source code in client/ayon_silhouette/plugins/workfile_build/create_placeholder.py
28
29
30
31
32
33
34
35
36
def post_placeholder_process(self, placeholder, failed):
    """Cleanup placeholder after load of its corresponding representations.

    Args:
        placeholder (PlaceholderItem): Item which was just used to load
            representation.
        failed (bool): Loading of representation failed.
    """
    pass