Notifications
Clear all

[Closed] one mat per image?

dear script gods,

is there a script that checks a pack of numbered images (like image001.jpg > image200.jpg) and creates a multi sub mat with each image in the diffuse channel? i might need such a script for a particle effect with lots of random images applied to shape instances. (god bless the cache disk which is working properly since the last update )

kindest regards,
anselm

4 Replies

something like this ?

(
files=getfiles “D:\3D\3ds max 9\maps\*.jpg”
mat=multimaterial()
mat.numsubs=files.count
for i=1 to files.count do
(
m=standard()
m.diffuseMap=bitmaptexture filename:files[i]
mat[i]=m
)
meditmaterials[1]=mat
)

it might be easier to load the images as a sequence in single material and then jump around the sequence randomly.

i dont wanna cycle the entire image sequence…random pictures of on random particles.

i´ll try teh script @ ZBuffer

kind regards,
anselm

EDIT: script is working like a charme

kind regards,
“a happy” anselm