Notifications
Clear all

[Closed] script request: Random Texture Assigner

simple as that. good for people, like me, who have a bunch of projects with lots of instanced geometry, but multiple textures for each one. so, you select all the instances (an apply to all instances button would kick ass if you wanna put in the time), and an applet for each texture you want to use. even having just text boxes and I type in the name of the shader (you know, usually says something like ‘01 – default’) thats fine as well.

I understand basic scripting, and use it often, just nothing with textures. My biggest problem is no time to learn it right now.

3 Replies

How are you getting the texture list? From the material editor? From a folder of images?

It’s fairly simple from what I can see, there are a few methods depending on where your textures are coming from.

RandomMat may be the script you’re after…

http://www.neilblevins.com/blurscripts/blurscripts.htm

  • Neil

I made one for our 3d people library.

It goes into the current material that is assigned to each person. Check the diffuse bitmap, and tries to find other “jpgs” (user specifiable) in the same directory. If it finds more, it randomly assigns one. It’s pretty simple, if you need it, I’ll post it from work Monday.