blendpresence icon indicating copy to clipboard operation
blendpresence copied to clipboard

[request] Large Icon

Open kobel240 opened this issue 1 year ago • 4 comments

(dont know if this is possible but... if possible) it would be cool to use the preview image that blender uses in the file browser as rich presence large icon image

kobel240 avatar Jul 23 '22 12:07 kobel240

I cant place the request label myself :(

kobel240 avatar Jul 23 '22 12:07 kobel240

Hi there, thanks for your request.

This feature is a great idea; sadly though, Discord Rich Presence images can only be retrieved from images that I've already uploaded to the client that powers BlendPresence (i.e blender logo, context modes) - meaning there's no official way to reference local images to use as icons.

I'll be closing this for now, but If this is somehow possible in the forseeable future, I would really like to look into adding this.

abrasic avatar Jul 23 '22 20:07 abrasic

Reopening this, I may have found a way to make and read thumbnails to put to the presence

abrasic avatar Sep 18 '22 22:09 abrasic

OK, after a bit of testing, I'm able to generate thumbnails by slightly modifying blender-thumbnailer.py to get it working for the add-on. Unfortunately though, I'm stumped past finding a proper way to upload said thumbnail.

The only logical way for me to properly post images to the presence would be converting the image to base64 data to pass onto the presence, however (a) Discord has a hard limit of 256 characters for input (most encoded thumbnails are around 10,000 chars) and (b) I don't even know if discord supports base64 data for the RPC.

I've realized that you can pass image URLs and it does work, however I don't feel willing to make some sort of service that involves frequently uploading thumbnails to post onto a web server for a feature like this. It was worth trying out though. I'll leave this open incase there are other methods that can be used

abrasic avatar Sep 19 '22 00:09 abrasic