Skip to content

load_workfile

Import workfiles into your current comp. As all imported nodes are free floating and will probably be changed there is no update or reload function added for this plugin

FusionLoadWorkfile

Bases: LoaderPlugin

Load the content of a workfile into Fusion

Source code in client/ayon_fusion/plugins/load/load_workfile.py
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class FusionLoadWorkfile(load.LoaderPlugin):
    """Load the content of a workfile into Fusion"""

    product_types = {"workfile"}
    representations = {"*"}
    extensions = {"comp"}

    label = "Load Workfile"
    order = -10
    icon = "code-fork"
    color = "orange"

    def load(self, context, name, namespace, data):
        # Get needed elements
        bmd = get_bmd_library()
        comp = get_current_comp()
        path = self.filepath_from_context(context)

        # Paste the content of the file into the current comp
        comp.Paste(bmd.readfile(path))