remove colorbleed traces

This commit is contained in:
Milan Kolar 2018-11-12 01:06:04 +01:00
parent b582953552
commit c6d34a5c15
13 changed files with 81 additions and 108 deletions

View file

@ -74,7 +74,7 @@ class CollectAssumedDestination(pyblish.api.InstancePlugin):
project = io.find_one({"type": "project",
"name": project_name},
projection={"config": True})
projection={"config": True, "data": True})
template = project["config"]["template"]["publish"]
@ -109,7 +109,7 @@ class CollectAssumedDestination(pyblish.api.InstancePlugin):
template_data = {"root": api.Session["AVALON_PROJECTS"],
"project": project_name,
"projectcode": "prjX",
"projectcode": project['data']['code'],
"silo": silo,
"family": instance.data['family'],
"asset": asset_name,

View file

@ -159,7 +159,6 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
template_publish = project["config"]["template"]["publish"]
anatomy = instance.context.data['anatomy']
self.log.debug(anatomy)
# Find the representations to transfer amongst the files
# Each should be a single representation (as such, a single extension)
@ -192,9 +191,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
for fname in collection:
src = os.path.join(stagingdir, fname)
self.log.debug("test: " + src)
anatomy_filled = anatomy.format(template_data)
self.log.debug(anatomy_filled)
dst = anatomy_filled.publish.path
instance.data["transfers"].append([src, dst])
@ -217,16 +214,13 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
template_data["representation"] = ext[1:]
src = os.path.join(stagingdir, fname)
self.log.info("test: " + str(template_data))
anatomy_filled = anatomy.format(template_data)
self.log.info(anatomy_filled)
dst = anatomy_filled.publish.path
self.log.info(dst)
instance.data["transfers"].append([src, dst])
representation = {
"schema": "avalon-core:representation-2.0",
"schema": "pype:representation-2.0",
"type": "representation",
"parent": version_id,
"name": ext[1:],
@ -302,7 +296,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
self.log.info("Subset '%s' not found, creating.." % subset_name)
_id = io.insert_one({
"schema": "avalon-core:subset-2.0",
"schema": "pype:subset-2.0",
"type": "subset",
"name": subset_name,
"data": {},
@ -328,7 +322,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
version_locations = [location for location in locations if
location is not None]
return {"schema": "avalon-core:version-2.0",
return {"schema": "pype:version-2.0",
"type": "version",
"parent": subset["_id"],
"name": version_number,