-
Notifications
You must be signed in to change notification settings - Fork 129
Burnin: Get data from context with defined keys. #1897
Conversation
Very nice! We'll do some testing, but I love the idea |
Its currently not as simple as it maybe should be. The pyblish context cant be serialized and its also quite a bit of data to pass to the burnin script, so I'm trying to lighten the load by finding which key is being queried by the settings and only send that to the burnin script. |
I think it would be better to have defined one specific key on context which could hold possible "additional data" for burnins so it define that "change value of this key will affect your burnin values" instead of using all context data which is undocumentable, abstract and dangerous as I wouldn't want to go through all places where key changed value in |
That sounds good to me. Got any naming preference? |
Not really. I have thought about |
Just so I get this right. We want to query |
Well it's against the idea which is in description of using "context". I'm just scared about giving such huge unpredictable access to burnins. It's much safer to define which keys can be from context used in code than give full access to it through template. |
In fact this could be collected already in |
Yeah, I'm all for this. More explicit the better. |
Have simplified this a lot, so it just really needs documentation. The |
Co-authored-by: Milan Kolar <mkolar@users.noreply.github.com>
Co-authored-by: Milan Kolar <mkolar@users.noreply.github.com>
This PR enables studios to grab data from the pyblish context to use on the burnins.
Our use case is to get the task time and inject into the context
context.data["task_time"]
with a studio plugin. Then in the settings for the burnin plugin we can use this key:context[task_time]
[cuID:yjx9e9]