make hound happy

This commit is contained in:
Mustafa-Zarkash 2023-08-22 23:20:33 +03:00
parent 8351fee8f5
commit 77d18d0b06
4 changed files with 22 additions and 22 deletions

View file

@ -69,19 +69,19 @@ class CreateFilmboxFBX(plugin.HoudiniCreator):
def get_pre_create_attr_defs(self): def get_pre_create_attr_defs(self):
attrs = super().get_pre_create_attr_defs() attrs = super().get_pre_create_attr_defs()
vcformat = EnumDef("vcformat", vcformat = EnumDef("vcformat",
items={ items={
0: "Maya Compatible (MC)", 0: "Maya Compatible (MC)",
1: "3DS MAX Compatible (PC2)" 1: "3DS MAX Compatible (PC2)"
}, },
default=0, default=0,
label="Vertex Cache Format") label="Vertex Cache Format")
trange = EnumDef("trange", trange = EnumDef("trange",
items={ items={
0: "Render Current Frame", 0: "Render Current Frame",
1: "Render Frame Range" 1: "Render Frame Range"
}, },
default=0, default=0,
label="Valid Frame Range") label="Valid Frame Range")
return attrs + [vcformat, trange] return attrs + [vcformat, trange]
@ -103,10 +103,10 @@ class CreateFilmboxFBX(plugin.HoudiniCreator):
# parms dictionary # parms dictionary
parms = { parms = {
"startnode" : selection, "startnode": selection,
"sopoutput": output_path, "sopoutput": output_path,
"vcformat" : vcformat, "vcformat": vcformat,
"trange" : trange "trange": trange
} }
return parms return parms
@ -139,7 +139,7 @@ class CreateFilmboxFBX(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.
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"]:

View file

@ -126,19 +126,19 @@ class FbxLoader(load.LoaderPlugin):
file_node.destroy() file_node.destroy()
# Create a new file node # Create a new file node
file_node = parent_node.createNode("file", node_name= node_name) file_node = parent_node.createNode("file", node_name=node_name)
file_node.setParms({"file":file_path}) file_node.setParms({"file": file_path})
# Create attribute delete # Create attribute delete
attribdelete_name = "attribdelete_{}".format(subset_name) attribdelete_name = "attribdelete_{}".format(subset_name)
attribdelete = parent_node.createNode("attribdelete", attribdelete = parent_node.createNode("attribdelete",
node_name= attribdelete_name) node_name=attribdelete_name)
attribdelete.setParms({"ptdel":"fbx_*"}) attribdelete.setParms({"ptdel": "fbx_*"})
attribdelete.setInput(0, file_node) attribdelete.setInput(0, file_node)
# Create a Null node # Create a Null node
null_name = "OUT_{}".format(subset_name) null_name = "OUT_{}".format(subset_name)
null = parent_node.createNode("null", node_name= null_name) null = parent_node.createNode("null", node_name=null_name)
null.setInput(0, attribdelete) null.setInput(0, attribdelete)
# Ensure display flag is on the file_node input node and not on the OUT # Ensure display flag is on the file_node input node and not on the OUT

View file

@ -42,7 +42,6 @@ class CollectFilmboxfbxType(pyblish.api.InstancePlugin):
# to Update instance.data with ouptut_node of different types # to Update instance.data with ouptut_node of different types
# however, this collector is used for demonstration # however, this collector is used for demonstration
def get_output_node(self, instance): def get_output_node(self, instance):
"""Getting output_node Logic.""" """Getting output_node Logic."""

View file

@ -29,6 +29,7 @@ from openpype.hosts.houdini.api.action import (
import hou import hou
# Each validation can have a single repair action # Each validation can have a single repair action
# which calls the repair method # which calls the repair method
class AddDefaultPathAction(RepairAction): class AddDefaultPathAction(RepairAction):