eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL
Other
598 stars 59 forks source link

Add a button in preferences to open the scraper's directory #161

Open baronlanteigne opened 3 years ago

baronlanteigne commented 3 years ago

[edit] original title: Let user specify a "template" for texture source url websites

I'm referring to how when a website changes its url or its structure, the addon is broken. It would be nice if the user could adjust which url to read from in the clipboard import and how. The default value would be whatever works when the addon is released but if something changes at least the user can keep using the addon with a new url (by replacing cc0textures with ambientCG, ie) until a fix is released.

eliemichel commented 3 years ago

Hi @johannbl I tried to make it easy enough to do so, you can follow instructions in https://github.com/eliemichel/LilySurfaceScraper#adding-new-sources and basically look at the files in the Scrapers directory. Let me know if you have any idea of how I could make this even clearer/easier!

baronlanteigne commented 3 years ago

Oh! Thanks, this is it. Maybe a GUI in the preferences could let you edit all instances of "cc0textures" in its .py file so it can be replaced by "ambientcg" in one field but your current solution is just a few more steps. Not the end of the world. Maybe you could add a button in the preferences to open this directory because it's used to add new sources too. I think if that button was there I could have found it more intuitively. Thanks.

eliemichel commented 3 years ago

Good suggestion!