Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1067

Setting Surface Diffuse Collor Image

$
0
0

I have a simple plane with an image on it.  When I run the script, I would like the replace the currest diffuse color image with the next image in a series.

I'm just getting started in DAZ scripting and although I have a good background in JS and other programming languages I can't seem to get this to work.

1. The idea wold be to read the current image name from the selected plane's diffuse color image.
2. Pull the name of the image file from the plane's surfaece.
3. From the exposed string obtain the last two chars into a string variable and convert it  to a number.and put that in another variable.
3. Add 1 to the result, convert it back to a string and concat it to the image file name.
4. Finally save that back to the plane's surface diffuse color image.

Anyone got the time to help?


Viewing all articles
Browse latest Browse all 1067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>