Skip to content

Instantly share code, notes, and snippets.

import bpy
from bpy.props import *
# New texture slot class
class LegacyTextureSlot(bpy.types.PropertyGroup):
texture = PointerProperty(type=bpy.types.Texture)
name = StringProperty(name="Name", description="Name for this texture slot")
uv_layer = StringProperty(name="UV Slot")
bpy.utils.register_class(LegacyTextureSlot)