Forum: Poser Python Scripting


Subject: Scripted Shader Node Animation

Iuvenis_Scriptor opened this issue on May 08, 2022 ยท 19 posts


adp001 posted Mon, 09 May 2022 at 10:47 AM

structure posted at 9:22 AM Mon, 9 May 2022 - #4438338

also my code takes into account the case of names, so "SkinHead" will be found as will "skinhead""Skinhead", and "skinHead" etc.

what about this:


main = (n.lower() for n in ("SkinHead", "SkinLimbs", "SkinTorso", "Iris", "Fingernails", "Teeth", "Gums", "Tongue"))
for (material, zone) in [(mat, mat.Name()) for mat in actor.Materials() if mat.Name().lower() in main]:

...

Preserves the original Nodename.