Hey guys, I'm curious if anyone has experienced this problem I'm having right now. I'm really novice to scripting, I'm hoping there's something really obvious that I'm missing. I'll try to start by explaining the new problem I'm having, and then the original thought process for my solution. The new problem: The script I…
@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?…
@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…
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…
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…
"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…
I just have lots of assets created by artists who kept files in various structures. I was thinking I'd correct texture paths as I work on them, but I'm starting to think that batch correcting the paths might be the way to go. But setting each scene to a standard project will probably be a good start. Thanks for your help!
Any reason you're avoiding using a project? They're quite handy, easy to set up, and should avoid the problem you're facing. You can remove practically everything from the locations section when setting one up if you want. At this point, I don't have any further insights on the Recent Files thing, sorry.