Skip to content

create_image_saver

CreateImageSaver

Bases: GenericCreateSaver

Fusion Saver to generate single image.

Created to explicitly separate single ('image') or multi frame('render) outputs.

This might be temporary creator until 'alias' functionality will be implemented to limit creation of additional product types with similar, but not the same workflows.

Source code in client/ayon_fusion/plugins/create/create_image_saver.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
class CreateImageSaver(GenericCreateSaver):
    """Fusion Saver to generate single image.

     Created to explicitly separate single ('image') or
        multi frame('render) outputs.

    This might be temporary creator until 'alias' functionality will be
    implemented to limit creation of additional product types with similar, but
    not the same workflows.
    """
    identifier = "io.openpype.creators.fusion.imagesaver"
    label = "Image (saver)"
    name = "image"
    product_type = "image"
    description = "Fusion Saver to generate a single image file"

    default_frame = 0

    def get_detail_description(self):
        return inspect.cleandoc(
            """Fusion Saver to generate a single image file.

            This creator is expected for publishing of single frame `image` 
            product type.

            Artist should provide frame number (integer) to specify which frame
            should be published. It must be inside of global timeline frame 
            range.

            Supports local and deadline rendering.

            Supports selection from predefined set of output file extensions:
            - exr
            - tga
            - png
            - tif
            - jpg

            Created to explicitly separate single frame ('image') or
            multi frame ('render') outputs.
            """
        )

    def get_pre_create_attr_defs(self):
        """Settings for create page"""
        attr_defs = [
            self._get_render_target_enum(),
            self._get_reviewable_bool(),
            self._get_frame_int(),
            self._get_image_format_enum(),
        ]
        return attr_defs

    def _get_frame_int(self):
        return NumberDef(
            "frame",
            default=self.default_frame,
            label="Frame",
            tooltip="Set frame to be rendered, must be inside of global "
                    "timeline range"
        )

get_pre_create_attr_defs()

Settings for create page

Source code in client/ayon_fusion/plugins/create/create_image_saver.py
51
52
53
54
55
56
57
58
59
def get_pre_create_attr_defs(self):
    """Settings for create page"""
    attr_defs = [
        self._get_render_target_enum(),
        self._get_reviewable_bool(),
        self._get_frame_int(),
        self._get_image_format_enum(),
    ]
    return attr_defs