AcademySoftwareFoundation / OpenColorIO

A color management framework for visual effects and animation.
https://opencolorio.org
BSD 3-Clause "New" or "Revised" License
1.76k stars 434 forks source link

Add code examples for ColorSpaceMenuHelper #1869

Open doug-walker opened 11 months ago

doug-walker commented 11 months ago

The documentation provides some C++ and Python code examples for doing various things with the OCIO API. There is a need for some examples that shows how to use the AppHelpers API which is intended to help app developers improve their user experience. The most important thing to add would be how to use the ColorSpaceMenuHelper API which is intended to allow applications to easily build color space menus that are filtered using attributes such as categories.

This should show how to configure the ColorSpaceMenuParameters, instantiate a ColorSpaceMenuHelper, and iterate over the resulting menu items.