Help - Search - Members - Calendar
Full Version: TextureSuffixChanger v0.1
SWR Productions Forum > Game Modding and Development > Generals/Zerohour Modding
Stalker
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!
menard
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?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.