Skip to content

Commit

Permalink
Merge pull request #8 from nfa-vfxim/dev
Browse files Browse the repository at this point in the history
Set prim path based on name without version
  • Loading branch information
mervinvb authored May 14, 2024
2 parents b417557 + 8e52fe8 commit 48bedc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hooks/tk-houdini_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ def _usd_reference(self, path, sg_publish_data):
reference_node = stage_context.createNode("reference", name)

# Set parameters
reference_node.parm("primpath1").set(
sg_publish_data.get("name").replace("-", "_")
)
reference_node.parm("filepath1").set(path)
reference_node.parm("primpath").set("/scene/$OS")
reference_node.parm("primkind").set("group")
Expand Down

0 comments on commit 48bedc6

Please sign in to comment.