mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
commit
011702d77d
2 changed files with 16 additions and 1 deletions
14
colorbleed/plugins/global/publish/collect_machine_name.py
Normal file
14
colorbleed/plugins/global/publish/collect_machine_name.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import pyblish.api
|
||||
|
||||
|
||||
class CollectMachineName(pyblish.api.ContextPlugin):
|
||||
label = "Local Machine Name"
|
||||
order = pyblish.api.CollectorOrder
|
||||
hosts = ["*"]
|
||||
|
||||
def process(self, context):
|
||||
import socket
|
||||
|
||||
machine_name = socket.gethostname()
|
||||
self.log.info("Machine name: %s" % machine_name)
|
||||
context.data.update({"machine": machine_name})
|
||||
|
|
@ -340,7 +340,8 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
|
|||
"time": context.data["time"],
|
||||
"author": context.data["user"],
|
||||
"source": source,
|
||||
"comment": context.data.get("comment")}
|
||||
"comment": context.data.get("comment"),
|
||||
"machine": context.data.get("machine")}
|
||||
|
||||
# Include optional data if present in
|
||||
optionals = ["startFrame", "endFrame", "step", "handles"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue