Refactor family to productType like currently in develop

(So basically revert)
This commit is contained in:
Roy Nieterau 2024-06-05 00:17:47 +02:00
parent 946e9961bb
commit 3e4d6e6df5

View file

@ -171,16 +171,14 @@ class HoudiniSubmitDeadline(
job_type = "[RENDER]"
if split_render_job and not is_export_job:
# Convert from family to Deadline plugin name
# i.e., arnold_rop -> Arnold
family = instance.data["family"]
product_type = instance.data["productType"]
plugin = {
"usdrender": "HuskStandalone",
}.get(family)
}.get(product_type)
if not plugin:
# Convert from family to Deadline plugin name
# Convert from product type to Deadline plugin name
# i.e., arnold_rop -> Arnold
plugin = family.replace("_rop", "").capitalize()
plugin = product_type.replace("_rop", "").capitalize()
else:
plugin = "Houdini"
if split_render_job: