ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
There used to be two things in life that truly scared me. One was the soundtrack from Frozen. The other was Regular Expressions. Find out which one I said "Let it go" to...
I've created an example whereby it strips any bitmap filename including path if missing so you don't get that pop up at the beginning when you open the file.
OldString =@".*"
MapArray = getClassInstances BitmapTexture
for o in MapArray where doesFileExist(o.filename) == falsedo(
rgx = dotnetObject "System.Text.RegularExpressions.Regex" OldString
filename = rgx.Replace o.filename ""
o.filename = Filename
ATSOps.Refresh())
Comments
Thank you.
I've created an example whereby it strips any bitmap filename including path if missing so you don't get that pop up at the beginning when you open the file.
.*
matches any character (Greedy)