Skip to content

Commit

Permalink
Allow submitting along houdini version number to husk
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Jun 4, 2024
1 parent 3e4d6e6 commit e980577
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class HuskStandalonePluginInfo():
PostFrame = attr.ib(default="")
PostRender = attr.ib(default="")
RestartDelegate = attr.ib(default="")
Version = attr.ib(default="")


class HoudiniSubmitDeadline(
Expand Down Expand Up @@ -326,7 +327,8 @@ def get_plugin_info(self, job_type=None):
))

elif product_type == "usdrender":
plugin_info = self._get_husk_standalone_plugin_info(instance)
plugin_info = self._get_husk_standalone_plugin_info(
instance, hou_major_minor)

else:
self.log.error(
Expand Down Expand Up @@ -358,7 +360,7 @@ def process(self, instance):
output_dir = os.path.dirname(instance.data["files"][0])
instance.data["outputDir"] = output_dir

def _get_husk_standalone_plugin_info(self, instance):
def _get_husk_standalone_plugin_info(self, instance, hou_major_minor):
# Not all hosts can import this module.
import hou

Expand Down Expand Up @@ -388,7 +390,8 @@ def _get_husk_standalone_plugin_info(self, instance):
PreFrame=rop_node.evalParm("husk_preframe"),
PostFrame=rop_node.evalParm("husk_postframe"),
PostRender=rop_node.evalParm("husk_postrender"),
RestartDelegate=restart_delegate
RestartDelegate=restart_delegate,
Version=hou_major_minor
)


Expand Down

0 comments on commit e980577

Please sign in to comment.