EnglishBob opened this issue on Oct 13, 2011 · 9 posts
RobynsVeil posted Sat, 03 December 2011 at 2:19 AM
Quote - heres something like what you want
import poser
mats = poser.Scene().CurrentFigure().Materials()
for mat in mats:
tree = mat.ShaderTree().NodeByInternalName("PoserSurface")
nod = tree.NodeByInternalName("PoserSurface")
inp_Diffuse = nod.InputByInternalName("Diffuse_Color")
nod_diffuse = inp_Diffuse.InNode()
inp_bump = nod.InputByInternalName("Bump")
nod_Diffuse.ConnecttoInput(inp_bump)
tree.UpdatePreview()poser.Scene().Drawall()
Check my spelling and the actual bump input name.
Sorry to bump this up - it is indeed something that is going to help me a lot. Thanks heaps for that!! Writing a GUI and there's a lot to learn. be happy for examples for wxPython. This is gold, though!
Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2
Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand]