Update openpype/hosts/houdini/plugins/create/create_review.py

Co-authored-by: Kayla Man <64118225+moonyuet@users.noreply.github.com>
This commit is contained in:
Roy Nieterau 2023-03-31 12:33:58 +02:00 committed by GitHub
parent 7ae683413d
commit 7778644613
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,9 +57,13 @@ class CreateReview(plugin.HoudiniCreator):
})
if self.selected_nodes:
# todo: allow only object paths?
node_paths = " ".join(node.path() for node in self.selected_nodes)
parms.update({"scenepath": node_paths})
for node in self.selected_nodes:
path = node.path()
if node.type().name() == "cam":
parms.update({"camera": path})
else:
node_paths = " ".join(path)
parms.update({"forceobjects": node_paths})
instance_node.setParms(parms)