Search - User list
Full Version: Baking Substance Material with PDG
Root » PDG/TOPs » Baking Substance Material with PDG
hunter_ar
Hey guys.

I was trying to bake substance material(along input) with PDG.
basically I was baking texture,curvature,position and workspace normal directly from Houdini and use these as input for substance material sop.

By doing many test, it seems like only texture input will update when run PDG, but anything related with curvature or position, world space-normal will not update when using PDG.
But manually switch the active working item will bake correctly. Am I doing something wrong or it natively doesn't support it.

It also raise a question that can we write python script that pressButton() to bake texture for each working items?

Thanks
hunter_ar
Here is the expected result vs actually result.
Basically we can tell the texture is change but the position and worldspace_normal not affect the baking at all

jparker
I had to put a pre-render script in the ROP Composite TOP to do exactly what you describe, it just force-presses the "Reload" button on the Substance COP.

Here's what the hscript would look like:

opparm -C /path/to/substance/cop reload (1)
hunter_ar
jparker
Composite

Thanks man. Sorry I did not reply in time.
I just tested it. It works like charm!

Thank you!
jparker
Glad to hear that, but I wish the Substance COP UI was more "procedural". If you want to override the parameters via attributes, prepare for some Python hackery.
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