hunter_ar
Nov. 2, 2022 22:18:22
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
Nov. 3, 2022 15:58:06
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
Nov. 16, 2022 21:42:17
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
Feb. 25, 2023 15:25:10
jparker
Composite
Thanks man. Sorry I did not reply in time.
I just tested it. It works like charm!
Thank you!
jparker
April 2, 2023 20:53:18
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.