PDA

View Full Version : script request: Random Texture Assigner


PooLatka
11-24-2007, 12:28 AM
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.

Rick Stirling
11-24-2007, 12:58 AM
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.

soulburn3d
11-24-2007, 03:21 PM
RandomMat may be the script you're after...

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

- Neil

MoonDoggie
11-24-2007, 04:23 PM
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.

CGTalk Moderation
11-24-2007, 04:24 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.