Apply a given map when the property does not inherit DzNumeric Properties [Solved]

V3DigitimesV3Digitimes Posts: 3,172

Hello,

I have almost finshed a script, and only one point is missing. (Still this issue of normal map). This script proceed to a copy of one given surface of a figure A, to some selected the surfaces of a Figure B (including shader type), but preserves the initial maps of figure B, by reading them initally and then reapplying them after the copy is done. Everything works fine in most cases, except in the case where the shader of the copied surface results in the fact that "final" normal map does not inherit DzNumericProperty. I don't manage to apply a texture to this property, probably because I don't know the command to do so.

For now I have tried : oProperty.texture = MapPath; which does not work. Even  oProperty.texture = ""; does not empty the image map slot...

Finally with Rob script allowing to have a surface properties, I managed to understand it was a dz image property. This helped me solving my issue...

The answer was as easy as a "setValue" !

 

Post edited by V3Digitimes on
Sign In or Register to comment.