hound fix

This commit is contained in:
Kayla Man 2023-04-11 16:24:00 +08:00
parent f2fe829846
commit ecc673295c
3 changed files with 5 additions and 9 deletions

View file

@ -34,12 +34,12 @@ class CreateKarmaROP(plugin.HoudiniCreator):
hou.text.expandString("$HIP/pyblish/"),
"{}.$F4.{}".format(subset_name, ext)
)
checkpoint = "{}{}".format(
checkpoint = "{}{}".format(
hou.text.expandString("$HIP/pyblish/"),
"{}.$F4.checkpoint".format(subset_name)
)
usd_directory = "{}{}".format(
usd_directory = "{}{}".format(
hou.text.expandString("$HIP/pyblish/usd_renders/"),
"{}_$RENDERID".format(subset_name)
)
@ -74,12 +74,11 @@ class CreateKarmaROP(plugin.HoudiniCreator):
if not camera:
self.log.warning("No render camera found in selection")
parms.update({
"camera": camera or "",
"resolutionx": res_x,
"resolutiony": res_y,
})
})
instance_node.setParms(parms)

View file

@ -22,7 +22,6 @@ def get_top_referenced_parm(parm):
else:
parm = ref
def evalParmNoFrame(node, parm, pad_character="#"):
parameter = node.parm(parm)
@ -108,7 +107,7 @@ class CollectMantraROPRenderProducts(pyblish.api.InstancePlugin):
render_products.append(aov_product)
files_by_aov[var] = self.generate_expected_files(instance,
aov_product)
aov_product) # noqa
for product in render_products:
self.log.debug("Found render product: %s" % product)
filenames = list(render_products)
@ -121,8 +120,6 @@ class CollectMantraROPRenderProducts(pyblish.api.InstancePlugin):
if "expectedFiles" not in instance.data:
instance.data["expectedFiles"] = list()
instance.data["expectedFiles"].append(files_by_aov)
self.log.debug("expectedFiles: %s" % files_by_aov)
def get_render_product_name(self, prefix, suffix):
if suffix:

View file

@ -109,7 +109,7 @@ class CollectRedshiftROPRenderProducts(pyblish.api.InstancePlugin):
render_products.append(aov_product)
files_by_aov[aov_suffix] = self.generate_expected_files(instance,
aov_product)
aov_product) # noqa
for product in render_products:
self.log.debug("Found render product: %s" % product)