Jump to content
catchyid

how to load .bgo.sc without creating file node?

Recommended Posts

Hi,

Is it possible in hython to load content of xyz.bgo.sc into houdini without using 'file' node? I need to load many geometry files to process them, I know i can use SOP for-loop with 'file' node and merge result, but I am wondering if it's possible to do that completely in hython?

 

Thx

Share this post


Link to post
Share on other sites

I think i found the solution on another question:

node = hou.pwd()
geo = node.geometry()

geo1 = hou.Geometry()
geo1.loadFromFile('$HIP/geo/geo1.obj')

geo2 = hou.Geometry()
geo2.loadFromFile('$HIP/geo/geo2.obj')

geo.merge(geo1)
geo.merge(geo2)

Share this post


Link to post
Share on other sites

I suggest looking into TOPs (aka PDG) for this.
It can most likely answer your needs.

Super convenient to work on multiple assets at the same time and execute the same procedure onto them all.
Each file will be a work item, onto which you can do basically any process you want (HDA, geometry network, etc etc).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×