1
ASL Scripts / Re: How to get full texture filename?
« on: June 12, 2008, 07:26:53 pm »
I've finally worked it out. 
This seems to do the trick:
$name[1] = $tex[1].GetFileName();
$name[2] = $tex[1].name +"."+$name[1].GetExt;
$output.print("TextureFilename {\n");
$output.print("\"%s\";\n", $name[2]);

This seems to do the trick:
$name[1] = $tex[1].GetFileName();
$name[2] = $tex[1].name +"."+$name[1].GetExt;
$output.print("TextureFilename {\n");
$output.print("\"%s\";\n", $name[2]);