eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

baronlanteigne opened this issue · comments

[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.

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!

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.

Good suggestion!