I noticed you are calling reloadTexture() inside a for loop. Each time it got called it will loop through all file nodes to set texture path. It's doing that loop over and over which I don't think is what you intended? If you want a fail safe reload you could call that separately just once at the end. I may be wrong but I…
Thinking about it again, what I said here was incorrect... the issue isn't really that the paths are absolute, it is more that the maya files are pointing to the wrong paths. Thanks for your suggestion! I just tried it and it's giving me the same results. I realize now that using os module here wasn't necessary thought.…
@Panupat I pulled the texture reloading out of the for loop, definitely not my intention. I also applied some of your other suggestions to the best of my ability, I'm definitely not at a level to write well optimized scripts.....but I'm happy to say that after some more stumbling around I found a solution that works! The…
@throttlekitty Yeah, it would be great to just shake Maya awake! I added a line for reloading textures and it's not really doing the trick yet. (shared hacky code at the bottom) You're also correct about setting the project, I'm was purposefully trying to avoid that. Hopefully that's not making things even more difficult?…
There's no error when it fails. maya does indicates that the texture doesn't exist only after I select the node: Yes the folder structure you listed is close, here's a link to some files that imitate my current setup: https://drive.google.com/open?id=157YozPgMuK0qsgragKijY59qjDmZNZS7 Yes, the textures were not showing in…
"Since Maya stores texture paths as absolute strings, an asset wont display the texture until the path is fixed manually" I'm getting hung up on this part foremost; if the file node has an absolute path, why wouldn't it display? (well on your computer, at least.) Totally get the need for relative paths, I'm guessing that…
The first thing I'd try is to reload the textures and see if that works. I have doubts though, since maya isn't recognizing the path of the current scene to handle how the file node paths to the texture file, which is why you're in this predicament to begin with. But I can't think of a way to force maya to say "oh yeah…