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?
Thanks for any help.