eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZeroDivisionError

Shyrtle opened this issue · comments

I am running into an issue with importing files from cgbookcase.

When I paste the link, and press import, it asks what resolution I would like to get, and I select a resolution. Then it pops up with the following error.

image

It says there is a ZeroDvisionError: integer division or modulo by zero.

It looks like there is an issue going on with the selected_variants = [(variants_data[variant_index % n], False)] line.

  • URL of the material or world that failed to import (and variant, if applicable): Happening with many (possibly all) cgbookcase textures.
  • Version of LilySurfaceScrapper: 1.7.1 Latest as of 5/24/2021
  • Version of Blender: 2.92
  • Operating System: Windows 10

I have tried restarting blender and the computer, as well as re-downloading and reinstalling the addon.

This is due to cgbookcase having changed the structure of their HTML, I'll update the scraping rules.