If you set the color engine to [OCIO] in After Effects 2024, you will be able to use [Display Color Space], but this [Display Color Space] cannot be assigned to shortcuts, etc. Is there any way to toggle between color spaces A and B as shown in the image below?
to tell the string for the color space you need, read the content of "app.project.workingSpace" while that color space is the active one. then you can copy it to the assignment operation.