Printable Version of Topic

Click here to view this topic in its original format

SWR Productions Forum _ Generals/Zerohour Modding _ TextureSuffixChanger v0.1

Posted by: Stalker 16 Jul 2015, 16:38

After way too many years of tedious manual work with building models I made this 3dsmax8 Script to quickly switch Textures.
This script lets you type in a texture suffix (e.g. "ds" for Damaged/Snow texture variants) and sets all your selected Objects' (W3D)Materials to the matching texture variant.
For this to work, the texture variants must be in the same folder and have the same name and file extension. It currently supports Multi-Materials, but only affects the first pass of your W3D materials.
If you select a suffix that doesn't exist for a material, it will not be changed. (e.g. housecolor2.tga stays housecolor2.tga). Leaving the Box empty will revert to default texture variants (= no suffix)

If you did not understand anything above, you will most likely not need this script.

It was tested in 3dsmax8, but should probably also work for 7.

Before:

After:


For Installation and Usage see the Readme:

CODE
************************************
TextureSuffixChanger V0.1 by Stalker
************************************
Description:
--
Changes all selected objects' textures to the matching textures with a different suffix.
e.g. Changes all objects from normal to snow or damaged textures.

NOTE: Materials will only be affected if the texture with the new suffix actually exists.


Installation:
--
* Put the .ms file into your 3dsmax\scripts\startup folder
* Launch 3dsmax
* Right-click any menu button, selec 'customize...'
* In the 'Category' Listbox, select 'W3D Utils'
* In the 'Actions' List find 'TextureSuffixChanger'
* Left-Click and Drag it into a toolbar
* Customize the Button if you want

Usage:
--
* Select all objects in the scene that you want the texture changed to
(usually just select all objects)
* Click the button you just created
* Enter a new texture suffix (e.g. "ds" for "<texture_ds>.tga")
(Keep the box empty to revert to default texture without suffix)
* Click apply



I hope you find this useful. If you have any questions, feel free to ask.

Happy modding!

 TextureSuffixChanger_v0.1.zip ( 1.81K ) : 24
 

Posted by: menard 18 Aug 2015, 23:25

Wow thanks for this script.I want to try to make a telacoil too sir. do you know how to create a electric sparkling effects and moving around in tesla coil sir?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)