Bases: InstancePlugin
Inject project data into Workfile instance
Source code in client/ayon_silhouette/plugins/publish/collect_workfile.py
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | class CollectWorkfileData(pyblish.api.InstancePlugin):
"""Inject project data into Workfile instance"""
order = pyblish.api.CollectorOrder - 0.01
label = "Silhouette Workfile"
families = ["workfile"]
def process(self, instance):
"""Inject the current working file data"""
context = instance.context
instance.data.update({
"frameStart": context.data["frameStart"],
"frameEnd": context.data["frameEnd"],
"handleStart": context.data["handleStart"],
"handleEnd": context.data["handleEnd"]
})
|
process(instance)
Inject the current working file data
Source code in client/ayon_silhouette/plugins/publish/collect_workfile.py
11
12
13
14
15
16
17
18
19 | def process(self, instance):
"""Inject the current working file data"""
context = instance.context
instance.data.update({
"frameStart": context.data["frameStart"],
"frameEnd": context.data["frameEnd"],
"handleStart": context.data["handleStart"],
"handleEnd": context.data["handleEnd"]
})
|