About this site

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 or SketchUp. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.

Delete the path from filename

I wander if I could delete the path name from the filename. I need it in particular case when I have bitmap in the same folder as max file. For example I have this property a.diffuseMap.bitmap.filename ="d://folder//folder//bitmap.jpg" and I want to change it to a.diffuseMap.bitmap.filename ="bitmap.jpg". When I'm trying to do it in script it doesn't change. What I do wrong?

im having a same problem that you mantioned about your first post about file paths . but my problem is about hdri file missing.

this max file worked another computer earlier and given me to work on it .
but i need it to upload over internet to render farm. but render farms plugin giving me this error about vrayhdr hdri file missing.

so te material isnt in the material browser and when im searched in the asset tracking there is no such file. but its there somewhere .

and i need to strip its path to upload on internet.

or i need to change it's file path .

i didnt know anything about maxscript.

can you guys help me
is there any simple 2 column script or smth. about changing path ?