Currently I am bringing in multiple fbx files based on an input folder using 'Python' node. This setup is working as intended.
importosimporthouobjects_path=hou.node(".").parm("import").eval()folder=os.listdir(objects_path)merge=hou.node("../").createNode("merge")file_input=hou.node("../FILE_INPUT")## Create loop that goes over the files in the folderi=0forfileinfolder:iffile.endswith(".fbx"):path=objects_path+filefile_node=hou.node("../").createNode("file")file_node.parm("file").set(path)## Connect files to Merge nodemerge.setInput(i,file_node)i+=1file_input.setInput(0,merge)
Is it possible to create the same workflow using a 'file' node inside a for loop?
I was able to look at the File Pattern node in the Top Network and it works as expected. The only issue is loading multiple files using an array. This video, 'Tech Talk | Process and Render Geometry and Textures with TOPS | Michael Buckley' goes over the process, just getting the array part to work is my current blocker. https://www.youtube.com/watch?v=L51DUKjrkIo [www.youtube.com]
Has anyone referenced an array in a file node using the File Pattern Top Network?
you can alternatively use File Merge SOP if the file names only differ with some number in name or alter it to fit your needs, but TOPs should allow you to do this out of the box
you can alternatively use File Merge SOP if the file names only differ with some number in name or alter it to fit your needs, but TOPs should allow you to do this out of the box
Thanks! We ended up using the File Merge SOP, since we were having an issue of Unreal picking up the Files using TOP Geometry. Glen