在 UV/图像编辑器中预览图像期间,我可以单击鼠标右键,然后在底角显示有关坐标(X,Y)和颜色(R,G,B)按下像素的信息。如何在 Python 中获取这些信息(坐标、颜色)?
我在源 IMAGE_OT_sample https://github.com/martijnberger/blender/blob/master/source/blender/editors/space_image/image_ops.c#L2996中找到
和
static void image_sample_apply(bContext *C, wmOperator *op, const wmEvent *event)
但我不知道如何在 Python 中提取这些数据。