Giter Club home page Giter Club logo

blender-colormaps's People

Contributors

artemkirsanov avatar kmarchais avatar thejeran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

blender-colormaps's Issues

The Zip

Hi, I can't get this add-on to install. When I install the .zip file in Blender nothing happens. When I opened the .zip, it only shows the Readme file. I think I executed the other module correctly, it said it was successfully installed, anyway. This is my first time installing something with python code. Can you provide a little more detail about the installation of this add-on?

Thank you

Can't find the script file

This project has no script file but a README.md.

Is this a missing issue or is the script not ready yet?

The effects posted in the README look pretty cool, I'm very looking forward to try it.

Pastel colors instead of true colors

Hello,

Thank you for this helpful project.
For at least some of the colormaps, the colormap obtained results in kind of pastel colors instead of true colors.
For example with the viridis colormap, here is the true colormap :
viridis

However, when generated with this addon, it gives the left color ramp on the following image. The color ramp of the right is with the true colours picked on the true colormap.
2023-06-28 17_46_34-Blender

I understand that the colormaps comes directly from matplotlib but it appears that the colors are not really the one expected. Do you know what is the issue ?

Thank you

colormaps library

Hi,
I found the add-on after implementing something similar myself, nice job.

Something that might be useful to you is the python package colormaps (I'm not the author):
https://github.com/pratiman-91/colormaps/tree/main/colormaps

It integrates colormaps from many other libraries that are easy to access and use.

A simple example:

import colormaps as cmaps

def create_color_ramp(nodes, colormap_name, location= (0,0), steps=21):
    # Create color ramp
    color_ramp = nodes.new(type="ShaderNodeValToRGB")
    color_ramp.color_ramp.color_mode = 'HSV'

    color_ramp.location = location

    # Change color ramp
    elements = color_ramp.color_ramp.elements
    elements.remove(elements[0])

    elements[0].position = 0

    # Get colormap based on name
    cmap = getattr(cmaps, colormap)
    step_length = 1.0/steps
    for i in range(1, steps+1):
        pos = step_length*i
        color_ramp.color_ramp.elements.new(pos)
    
    # Set color of elements
    for element in elements:
        element.color = cmap(element.position)
    
    return color_ramp

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.