The resulting texture from the below code start with a " char
this makes the copy and move fail
I have introduced the following code in line 150 and then it works:
texture = texture[1:]
don't understand why the texture = texture.strip("\"") remove the "
def rt_readTextures(rvMatFile):
textures = []
with open(rvMatFile) as f:
content = f.readlines()
content = [x.strip() for x in content]
for l in content:
if "texture" in l.lower():
t = l.split("=")
if len(t) == 2:
texture = t[1]
if texture.rfind(";") >= 0:
texture = texture[:-1]
texture = texture.strip("\"")
texture = texture.strip("'")
texture = texture.strip()
texture = texture[1:]
print("==", texture)
if texture[0] != '#':
textures.append(texture)
return textures
The resulting texture from the below code start with a " char this makes the copy and move fail I have introduced the following code in line 150 and then it works: texture = texture[1:]
don't understand why the texture = texture.strip("\"") remove the "