I'm trying to use layout.template_preview to display texture previews on some custom nodes I created. I'm currently calling it with just:
layout.template_preview(bpy.data.textures['some_name']) I'm not exactly sure what the other parameters do...
Problem is I can only get one texture to display at a time. The other nodes will display the same texture, even when I supply layout.template_preview with different textures. When I click on different nodes, sometimes the texture will change. Also, when the previews are displayed in the nodes, the texture preview in the properties panel disappears.
I wonder if I need to do something with the ID's, or maybe it has something to do with the user interface rendering.