Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

texture_slots was removed from Material API in Blender 2.80 #34

Open
BTOdell opened this issue Jan 25, 2022 · 0 comments
Open

texture_slots was removed from Material API in Blender 2.80 #34

BTOdell opened this issue Jan 25, 2022 · 0 comments

Comments

@BTOdell
Copy link

BTOdell commented Jan 25, 2022

Material#texture_slots has been removed as of Blender 2.80
For some reason, they didn't include the removal in the release notes for 2.80 :(

Anyway, it seems that all of the texture data is now stored in the node trees.
https://docs.blender.org/api/2.93/bpy.types.ShaderNodeTexImage.html#bpy.types.ShaderNodeTexImage
I think this is the node that manages texture nodes for materials, but they have removed any direct way of determining if the texture is being used for color or for normal maps. So it will involve some clever node tree traversal to determine which textures are being passed to which inputs further along the graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant