♻️ selected nodes argument rename

This commit is contained in:
Ondřej Samohel 2022-09-09 18:40:25 +02:00
parent 01c60e6fa7
commit fc5c07f1ca
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 4 additions and 4 deletions

View file

@ -29,8 +29,8 @@ class CreateAlembicCamera(plugin.HoudiniCreator):
"use_sop_path": False,
}
if self._nodes:
path = self._nodes[0].path()
if self.selected_nodes:
path = self.selected_nodes.path()
# Split the node path into the first root and the remainder
# So we can set the root and objects parameters correctly
_, root, remainder = path.split("/", 2)

View file

@ -33,8 +33,8 @@ class CreatePointCache(plugin.HoudiniCreator):
"filename": "$HIP/pyblish/{}.abc".format(subset_name)
}
if self._nodes:
parms["sop_path"] = self._nodes[0].path()
if self.selected_nodes:
parms["sop_path"] = self.selected_nodes[0].path()
instance_node.setParms(parms)
instance_node.parm("trange").set(1)