Giter Site home page Giter Site logo

bonjorno7 / 3dn-bip Goto Github PK

View Code? Open in Web Editor NEW
57.0 4.0 3.0 1 MB

A Python library for Blender addons. Blazingly fast preview loads in Blender. Images of arbitrary size. bpy.utils.previews drop-in replacement.

Home Page: https://bonjorno7.github.io/3dn-bip/

License: GNU General Public License v3.0

Python 97.49% Shell 2.51%
blender blender3d blender-addon blender-scripts blender-python pillow png jpg

3dn-bip's Issues

template_icon_view doesn't display icon names correctly when using bip.

When using bip to load previews, the labels in layout.template_icon_view(show_labels=True) display very incorrectly:

image

Here, the icons' names should just display their index:

for index, path in enumerate(img_paths):
    name = path.name
    icon = pcoll.load_safe(name, str(path), "IMAGE")
    _at_tree_previews.append((name, str(index), name, icon.icon_id, index))

where _at_tree_previews is the return value of the EnumProperty items callback

I also tried this on the example addon provided, and the same problem occurred.
To reproduce this, just set show_labels=True in the template_icon_view method in the example addon

I'm not 100% sure this is caused by bip, but I couldn't replicate it by using the normal bpy.utils.previews method. (Also, just as a side note, otherwise, this is amazing, and it solves a problem I've had for a while with the default blender previews :)

Would like to know why its so blazing fast

Bumped into an addon using this type and was curious about it. I read the intro of the repo and was wonder why its so blazing fast. Why would it for example load jpg or png faster then blender vanilla does

Background scene

Would be pretty cool if this could be animated. Things could be a lot cleaner. Even being able to stack scenes up on top of each other would be super great if it actually helps with Blender memory issues. If it does this means user could have larger scenes without bumping into larger problems.

blender_oCDj8m5ZR2.mp4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.