mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
make hound happy
This commit is contained in:
parent
8351fee8f5
commit
77d18d0b06
4 changed files with 22 additions and 22 deletions
|
|
@ -69,19 +69,19 @@ class CreateFilmboxFBX(plugin.HoudiniCreator):
|
|||
def get_pre_create_attr_defs(self):
|
||||
attrs = super().get_pre_create_attr_defs()
|
||||
vcformat = EnumDef("vcformat",
|
||||
items={
|
||||
0: "Maya Compatible (MC)",
|
||||
1: "3DS MAX Compatible (PC2)"
|
||||
},
|
||||
default=0,
|
||||
label="Vertex Cache Format")
|
||||
items={
|
||||
0: "Maya Compatible (MC)",
|
||||
1: "3DS MAX Compatible (PC2)"
|
||||
},
|
||||
default=0,
|
||||
label="Vertex Cache Format")
|
||||
trange = EnumDef("trange",
|
||||
items={
|
||||
0: "Render Current Frame",
|
||||
1: "Render Frame Range"
|
||||
},
|
||||
default=0,
|
||||
label="Valid Frame Range")
|
||||
items={
|
||||
0: "Render Current Frame",
|
||||
1: "Render Frame Range"
|
||||
},
|
||||
default=0,
|
||||
label="Valid Frame Range")
|
||||
|
||||
return attrs + [vcformat, trange]
|
||||
|
||||
|
|
@ -103,10 +103,10 @@ class CreateFilmboxFBX(plugin.HoudiniCreator):
|
|||
|
||||
# parms dictionary
|
||||
parms = {
|
||||
"startnode" : selection,
|
||||
"startnode": selection,
|
||||
"sopoutput": output_path,
|
||||
"vcformat" : vcformat,
|
||||
"trange" : trange
|
||||
"vcformat": vcformat,
|
||||
"trange": trange
|
||||
}
|
||||
|
||||
return parms
|
||||
|
|
@ -139,7 +139,7 @@ class CreateFilmboxFBX(plugin.HoudiniCreator):
|
|||
)
|
||||
|
||||
# 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 \
|
||||
selected_node.type().name() in ["geo"]:
|
||||
|
||||
|
|
|
|||
|
|
@ -126,19 +126,19 @@ class FbxLoader(load.LoaderPlugin):
|
|||
file_node.destroy()
|
||||
|
||||
# Create a new file node
|
||||
file_node = parent_node.createNode("file", node_name= node_name)
|
||||
file_node.setParms({"file":file_path})
|
||||
file_node = parent_node.createNode("file", node_name=node_name)
|
||||
file_node.setParms({"file": file_path})
|
||||
|
||||
# Create attribute delete
|
||||
attribdelete_name = "attribdelete_{}".format(subset_name)
|
||||
attribdelete = parent_node.createNode("attribdelete",
|
||||
node_name= attribdelete_name)
|
||||
attribdelete.setParms({"ptdel":"fbx_*"})
|
||||
node_name=attribdelete_name)
|
||||
attribdelete.setParms({"ptdel": "fbx_*"})
|
||||
attribdelete.setInput(0, file_node)
|
||||
|
||||
# Create a Null node
|
||||
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)
|
||||
|
||||
# Ensure display flag is on the file_node input node and not on the OUT
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ class CollectFilmboxfbxType(pyblish.api.InstancePlugin):
|
|||
# to Update instance.data with ouptut_node of different types
|
||||
# however, this collector is used for demonstration
|
||||
|
||||
|
||||
def get_output_node(self, instance):
|
||||
"""Getting output_node Logic."""
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ from openpype.hosts.houdini.api.action import (
|
|||
|
||||
import hou
|
||||
|
||||
|
||||
# Each validation can have a single repair action
|
||||
# which calls the repair method
|
||||
class AddDefaultPathAction(RepairAction):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue