mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
changed context key from "host" to "hostName"
This commit is contained in:
parent
46fd7ee628
commit
5d182faae2
4 changed files with 5 additions and 5 deletions
|
|
@ -63,7 +63,7 @@ class CollectAnatomyContextData(pyblish.api.ContextPlugin):
|
|||
"hierarchy": hierarchy.replace("\\", "/"),
|
||||
"task": task_name,
|
||||
"username": context.data["user"],
|
||||
"app": context.data["host"]
|
||||
"app": context.data["hostName"]
|
||||
}
|
||||
|
||||
datetime_data = context.data.get("datetimeData") or {}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class CollectHostName(pyblish.api.ContextPlugin):
|
|||
order = pyblish.api.CollectorOrder
|
||||
|
||||
def process(self, context):
|
||||
host_name = context.data.get("host")
|
||||
host_name = context.data.get("hostName")
|
||||
# Don't override value if is already set
|
||||
if host_name:
|
||||
return
|
||||
|
|
@ -34,4 +34,4 @@ class CollectHostName(pyblish.api.ContextPlugin):
|
|||
if app:
|
||||
host_name = app.host_name
|
||||
|
||||
context.data["host"] = host_name
|
||||
context.data["hostName"] = host_name
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ class ExtractBurnin(openpype.api.Extractor):
|
|||
|
||||
def main_process(self, instance):
|
||||
# TODO get these data from context
|
||||
host_name = instance.context["host"]
|
||||
host_name = instance.context["hostName"]
|
||||
task_name = os.environ["AVALON_TASK"]
|
||||
family = self.main_family_from_instance(instance)
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
instance.data["representations"].remove(repre)
|
||||
|
||||
def main_process(self, instance):
|
||||
host_name = instance.context["host"]
|
||||
host_name = instance.context["hostName"]
|
||||
task_name = os.environ["AVALON_TASK"]
|
||||
family = self.main_family_from_instance(instance)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue