You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
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 "
The text was updated successfully, but these errors were encountered: