mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix lint problems
This commit is contained in:
parent
5009df0f28
commit
10dcc4440c
1 changed files with 7 additions and 6 deletions
|
|
@ -44,7 +44,7 @@ class CreatePointCache(plugin.HoudiniCreator):
|
||||||
# the parent type is not 'geo' like
|
# the parent type is not 'geo' like
|
||||||
# Cameras, Dopnet nodes(sop solver)
|
# Cameras, Dopnet nodes(sop solver)
|
||||||
if isinstance(selected_node, hou.SopNode) and \
|
if isinstance(selected_node, hou.SopNode) and \
|
||||||
selected_node.parent().type().name() in ['geo', 'subnet']:
|
selected_node.parent().type().name() in ["geo", "subnet"]:
|
||||||
parms["sop_path"] = selected_node.path()
|
parms["sop_path"] = selected_node.path()
|
||||||
self.log.debug(
|
self.log.debug(
|
||||||
"Valid SopNode selection, 'SOP Path' in ROP will be set to '%s'."
|
"Valid SopNode selection, 'SOP Path' in ROP will be set to '%s'."
|
||||||
|
|
@ -54,7 +54,7 @@ class CreatePointCache(plugin.HoudiniCreator):
|
||||||
# Allow object level paths to Geometry nodes (e.g. /obj/geo1)
|
# Allow object level paths to Geometry nodes (e.g. /obj/geo1)
|
||||||
# but do not allow other object level nodes types like cameras, etc.
|
# but do not allow other object level nodes types like cameras, etc.
|
||||||
elif isinstance(selected_node, hou.ObjNode) and \
|
elif isinstance(selected_node, hou.ObjNode) and \
|
||||||
selected_node.type().name() in ['geo']:
|
selected_node.type().name() in ["geo"]:
|
||||||
|
|
||||||
# get the output node with the minimum
|
# get the output node with the minimum
|
||||||
# 'outputidx' or the node with display flag
|
# 'outputidx' or the node with display flag
|
||||||
|
|
@ -71,7 +71,7 @@ class CreatePointCache(plugin.HoudiniCreator):
|
||||||
|
|
||||||
if not parms.get("sop_path", None):
|
if not parms.get("sop_path", None):
|
||||||
self.log.debug(
|
self.log.debug(
|
||||||
"Selection isn't valid. 'SOP Path' in ROP will be empty."
|
"Selection isn't valid. 'SOP Path' in ROP will be empty."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.log.debug(
|
self.log.debug(
|
||||||
|
|
@ -102,10 +102,11 @@ class CreatePointCache(plugin.HoudiniCreator):
|
||||||
|
|
||||||
# if obj_node has one output child whether its
|
# if obj_node has one output child whether its
|
||||||
# sop output node or a node with the render flag
|
# sop output node or a node with the render flag
|
||||||
elif len(outputs)==1:
|
elif len(outputs) == 1:
|
||||||
return outputs[0]
|
return outputs[0]
|
||||||
|
|
||||||
# if there are more than one, then it have multiple ouput nodes
|
# if there are more than one, then it have multiple ouput nodes
|
||||||
# return the one with the minimum 'outputidx'
|
# return the one with the minimum 'outputidx'
|
||||||
else:
|
else :
|
||||||
return (min(outputs, key=lambda node : node.parm('outputidx').eval()))
|
return min(outputs,
|
||||||
|
key=lambda node : node.parm('outputidx').eval())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue