I need an eyedropper button in my UI. My question is about how do I use bpy.ops.ui.eyedropper_color() correctly? I tried
layout.operator(bpy.ops.paint.sample_color.idname())
which nicely draws me a button on the UI, but has no function (but also no error message). I also tried
layout.operator(bpy.ops.paint.sample_color.idname())
which is successful, but automatically assigns the color to the active brush, while I need to assign it to my own prop. Furthermore, I need it outside the paint context. ...any ideas?
The cool thing: the eyedropper of the standard color picker widget (bpy.ops.ui.eyedropper_color, that is) is doing exactly what I want. I just need it outside this widget.(which doesn't work so far)
– Mayqel Jun 09 '15 at 15:31