Forum: Poser Python Scripting


Subject: Copying materials

JohnRickardJR opened this issue on Feb 04, 2005 ยท 35 posts


JohnRickardJR posted Fri, 04 February 2005 at 1:05 PM

I'm sure I'm making a simple mistake, or underestimating the difficulty of the task. I'm trying to write a simple script to copy one material to another. To be precise, I want to write a script that copies the material from the skin to all other skin type materials, eventually to use with V3 and the skin node, but this version is meant to be for Posette. I get File "", line 6 SyntaxError: can't assign to function call whenever I run this script, or varients on it. import poser scene = poser.Scene() actor = scene.CurrentActor() actor.Material("lips") = actor.Material("skin") A search of this forum tells me that there is a way to copy one material to another without having to go through each setting in turn. Help!