Jump to content

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


catchyid

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

Link to comment
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)
Link to comment
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).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...