mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
make sure the type of selected node is camera
This commit is contained in:
parent
404079f07f
commit
7aba02ab73
1 changed files with 1 additions and 1 deletions
|
|
@ -66,8 +66,8 @@ class CreateKarmaROP(plugin.HoudiniCreator):
|
|||
# we will use as render camera
|
||||
camera = None
|
||||
for node in self.selected_nodes:
|
||||
camera = node.path()
|
||||
if node.type().name() == "cam":
|
||||
camera = node.path()
|
||||
has_camera = pre_create_data.get("cam_res")
|
||||
if has_camera:
|
||||
res_x = node.evalParm("resx")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue