7
$\begingroup$

I have a custom node and I want it to be able to display an image. I know that the node has a parameter show_preview and if you enable it, no image appears.

enter image description here

$\endgroup$

1 Answer 1

0
$\begingroup$

Are you trying to load a camera preview as an image? As your code suggests, you don't have any image selected and loaded to get a preview from.

You can use:

for i in bpy.data.images:
    print(i.name)

to verify that you actually have an image in memory.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .