add 'generic' family to collect farm instances and skip render if local publishing

This commit is contained in:
MustafaJafar 2024-05-23 18:00:10 +03:00
parent 078499dff8
commit 7aa80fb3c0
2 changed files with 6 additions and 3 deletions

View file

@ -9,7 +9,8 @@ class CollectFarmInstances(pyblish.api.InstancePlugin):
"karma_rop",
"redshift_rop",
"arnold_rop",
"vray_rop"]
"vray_rop",
"generic"]
hosts = ["houdini"]
targets = ["local", "remote"]

View file

@ -37,6 +37,8 @@ class ExtractROP(publish.Extractor):
}
# render rop
creator_attribute = instance.data["creator_attributes"]
if creator_attribute.get("render_target") == "local":
ropnode = hou.node(instance.data.get("instance_node"))
lib.render_rop(ropnode)