Notifications
Clear all
[Closed] Dotnet list texture name only in cell [SOLVED]
Dec 19, 2018 10:45 am
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
Dec 19, 2018 10:45 am
filenamefrompath (x.material.diffusemap.filename)
Dec 19, 2018 10:45 am
Ahhh shoot, I was messing around with filenamefile. Thank you so much.