Hi all,
In LOPs, the Scene Import node (https://www.sidefx.com/docs/houdini/nodes/lop/sceneimport.html) allows you to import the material with the "Import Materials" option.
Is there any way to import the material with the SOP Import node? (https://www.sidefx.com/docs/houdini/nodes/lop/sopimport.html)
Thanks,
Pete
Loading materials with SOP import in LOPs
492 4 1-
- peteski
- Member
- 522 posts
- Joined: 12月 2013
- Offline
-
- tamte
- Member
- 9064 posts
- Joined: 7月 2007
- Offline
From the Sop Import Help
https://www.sidefx.com/docs/houdini/nodes/lop/sopimport.html#enabling-parameters
To retrieve both the geometry and generate USD materials for an object authored in Houdini, you can use a SOP Create node, or a combination of a SOP Import to import the geometry, a Material Library LOP to bring in the materials, and a Material Assign LOP to bind the two together.
You could also use a Scene Import LOP to import geometry and materials with a single node, but it provides fewer control over the import process.
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- peteski
- Member
- 522 posts
- Joined: 12月 2013
- Offline
Hey thanks,
The Scene Import LOP seems to be the one for my workflow, it's a bit annoying that it will only accept object level nodes. I can work around that.
I have't been able to get the other SOP approaches to work though. So when they say "a Material Library LOP to bring in the materials" do they mean that you would manually fill that with materials then apply them with the material assign LOP?
I should mention, I already have the materials applied at the SOP level.
The Scene Import LOP seems to be the one for my workflow, it's a bit annoying that it will only accept object level nodes. I can work around that.
I have't been able to get the other SOP approaches to work though. So when they say "a Material Library LOP to bring in the materials" do they mean that you would manually fill that with materials then apply them with the material assign LOP?
I should mention, I already have the materials applied at the SOP level.
Edited by peteski - 2025年2月2日 17:11:03
-
- tamte
- Member
- 9064 posts
- Joined: 7月 2007
- Offline
what that note means is essentially that SOP Create LOP will create, populate and assign a material library based on already existing "shop_materialpath" attribute in SOPs since it is a wrapper of SOP Import LOP, Material Library LOP and Assign Material LOP
and for convenience you can have Object Merge SOP inside and promote it's objpath1 parm to the top
you will however need to click on Auto Fill Materials to build the multiparm based on the referenced geo, if you want something automatic beyond Scene Import, maybe Python LOP
and for convenience you can have Object Merge SOP inside and promote it's objpath1 parm to the top
you will however need to click on Auto Fill Materials to build the multiparm based on the referenced geo, if you want something automatic beyond Scene Import, maybe Python LOP
Edited by tamte - 2025年2月2日 18:29:59
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- peteski
- Member
- 522 posts
- Joined: 12月 2013
- Offline
-
- Quick Links