Search - User list
Full Version: How to import SOP-level materials into Solaris?
Root » Solaris and Karma » How to import SOP-level materials into Solaris?
raincole
We have Material SOP [www.sidefx.com] to assign materials to primitives in SOP context. We also have Assign Material LOP [www.sidefx.com] to assign materials to geometry subsets in LOP context.

But how to automatically import the former as the later? In other words, if I already have an object, which has materials assigned to its primitives in SOP context, how can I import it to LOP context?

SOP Import only imports /obj level material assignments, but not SOP level assignments.
robp_sidefx
While each has its pros & cons, there are (at least) three ways to achieve this:

1 - Scene Import will handle SOP-level material assignment

2 - SOP Create wraps SOP Import and has a Materials tab with an "Auto-fill Materials" button (note it's a one-off, not a live-updating thing)

3 - The "Auto-fill Materials" button mentioned above is a Python scrips inside the SOP Create HDA which you could try extracting and running in a Python LOP
raincole
@robp_sidefx Thank for your reply, but:

robp_sidefx
1 - Scene Import will handle SOP-level material assignment

I started this thread exactly because it doesn't work for me:





Green material in /obj and SOP level. No material in /stage. A bug?

I attached the .hip file too.

By the way, I copy-n'-paste the whole SOP network into a SOP Create and this:

robp_sidefx
2 - SOP Create wraps SOP Import and has a Materials tab with an "Auto-fill Materials" button (note it's a one-off, not a live-updating thing)

works for me, but SOP Scene Import doesn't work for the same SOPs. This leads me to believe it's indeed a bug.
robp_sidefx
Thanks for the test scene! Yes, unfortunately there's a bug right now where material assignment for packed prims isn't handled properly. It's on my radar (there are a few other similar cases), so hopefully addressed soon. Apologies for leading you down this dead-end!
kumpa
robp_sidefx
3 - The "Auto-fill Materials" button mentioned above is a Python scrips inside the SOP Create HDA which you could try extracting and running in a Python LOP


I chose number 3 because I would like to batch process large number of assets in TOP. Manually clicking through and pressing buttons to autofill materials and save to disk is all good but I can't get it to work in TOPS.
jomaro
raincole
@robp_sidefx Thank for your reply, but:

robp_sidefx
1 - Scene Import will handle SOP-level material assignment

I started this thread exactly because it doesn't work for me:

Image Not Found


Image Not Found


Green material in /obj and SOP level. No material in /stage. A bug?

I attached the .hip file too.

By the way, I copy-n'-paste the whole SOP network into a SOP Create and this:

robp_sidefx
2 - SOP Create wraps SOP Import and has a Materials tab with an "Auto-fill Materials" button (note it's a one-off, not a live-updating thing)

works for me, but SOP Scene Import doesn't work for the same SOPs. This leads me to believe it's indeed a bug.


Even the "Scene Import" is not importing the material for me.
robp_sidefx
jomaro
Even the "Scene Import" is not importing the material for me.

Can you provide a test scene for me to look at?
jomaro
robp_sidefx
jomaro
Even the "Scene Import" is not importing the material for me.

Can you provide a test scene for me to look at?

Thank you.
I did a lot of tests but it look like because the material from Vray imported via Cosmos Vray library (they use come custom nodes to connect the textures) Solaris can not recognize the Material Network.
DJeremySanity
robp_sidefx
While each has its pros & cons, there are (at least) three ways to achieve this:

1 - Scene Import will handle SOP-level material assignment

2 - SOP Create wraps SOP Import and has a Materials tab with an "Auto-fill Materials" button (note it's a one-off, not a live-updating thing)

3 - The "Auto-fill Materials" button mentioned above is a Python scrips inside the SOP Create HDA which you could try extracting and running in a Python LOP

hi, is it possible to do the opposite, like we get the materials from lop to sop?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB