Baking Substance Material with PDG

   1712   4   0
User Avatar
Member
5 posts
Joined: 7月 2022
Offline
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
User Avatar
Member
5 posts
Joined: 7月 2022
Offline
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

Edited by hunter_ar - 2022年11月3日 16:00:56

Attachments:
Expected.png (2.5 MB)
actual.png (1.3 MB)

User Avatar
Member
284 posts
Joined:
Offline
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)
User Avatar
Member
5 posts
Joined: 7月 2022
Offline
jparker
Composite

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

Thank you!
User Avatar
Member
284 posts
Joined:
Offline
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.
  • Quick Links