Skip to content

Commit

Permalink
Merge pull request #223 from BigRoy/enhancement/houdini_camera_loader…
Browse files Browse the repository at this point in the history
…_allow_switch
  • Loading branch information
mkolar authored Mar 27, 2024
2 parents 59de0a5 + 4f3391e commit 42db884
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/ayon_core/hosts/houdini/plugins/load/load_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ def update(self, container, context):

temp_camera.destroy()

def switch(self, container, context):
self.update(container, context)

def remove(self, container):

node = container["node"]
Expand Down Expand Up @@ -195,7 +198,6 @@ def create_and_connect(self, node, node_type, name=None):
def _match_maya_render_mask(self, camera):
"""Workaround to match Maya render mask in Houdini"""

# print("Setting match maya render mask ")
parm = camera.parm("aperture")
expression = parm.expression()
expression = expression.replace("return ", "aperture = ")
Expand Down

0 comments on commit 42db884

Please sign in to comment.