JohnRickardJR opened this issue on Feb 04, 2005 ยท 35 posts
underdog posted Fri, 04 February 2005 at 5:30 PM
I see what you want to do, and it makes sense to try it that way.. essentially you are saying, "copy this 'skin' material object to this 'lips' material object..." but that dog don't hunt.
What you need to do instead is, as duckmango suggested, replace each of the parameters...
For example, I just posted a script that saves all of the transparency settings for a figure or prop to a data file and then set's those transparency settings to ZERO. On the second run it reads the saved file and restores the transparency settings. I used these lines...
material.SetTransparencyMax(0.0)<br></br>material.SetTransparencyMin(0.0)
...to set the transparency min and max to zero and similar code to restore it from the saved data.
That "material" variable came from...
materials = actor.Materials()<br></br> ...<br></br> for material in materials:<br></br> ...<br></br> material.SetTransparencyMax(0.0)<br></br> material.SetTransparencyMin(0.0)
Look for scripts that set all materials to white. There are at least a couple of those in the "Free Stuff" and they will iterate over all of the materials. However, those scripts don't change the prop's transparency or reflection, etc.. just the color. ===Underdog===