So, to support one preview per pose of a PoseLibrary (first use case, many more are possible later), multi-preview (or preview frames) is being added to Blender (see the branch for details).
The main issue I’m facing here is how to use those 'frames' of preview images. I can think of two solutions, neither are really ideal to my taste (went with first one in current branch):
- Introduce the concept of 'frames' of an icon. You basically have to pass an extra value to UI API functions, the frame of the icon you want to use. This is simple and rather powerful, drawback here is that you'll ultimately have to change the whole UI API, which will be awfully… verbose.
- Generate one icon ID per frame of the preview image. This is simpler, but can lead to a huge amount of generated icon id’s (with matching Icon data), imho it’s really not worth the overhead.
Wouldn’t mind having your feelings here, or even better if you have other ideas, before I change whole UI api…