Notifications
Clear all

[Closed] Dotnet list texture name only in cell [SOLVED]

I have a list in dotnet and in one column it should display if a texture is used and show the texture filename.

I would like to display ONLY the texture filename in the cell, but it displays the entire location in the cell.

li.subitems.add (try((x.material.diffuseMap.filename) as string)catch(“ā€“”))

Iā€™m currently using this to get the texture name. How can write it that it will show ONLY the filename? It was actually working yesterday, not sure why it suddenly shows the entire address.

2 Replies
filenamefrompath (x.material.diffusemap.filename)

File Name Parsing

Ahhh shoot, I was messing around with filenamefile. Thank you so much.