COLORSPACE SELECTOR: Group box fails to show all possible colour transforms #53257

Open
opened 2017-11-06 04:27:01 +01:00 by Troy Sobotka · 7 comments

System Information
Debian Stretch

Blender Version
Trunk

Short description of error
Trial against ACES 1.0.3 set won't show all possible colour transforms when choosing via the UV Image Editor

Exact steps for others to reproduce the error
Load the ACES 1.0.3 configuration from the official repository. Try to change the colour transform on a loaded image.

Screenshot from 2017-11-05 19-25-15.png

**System Information** Debian Stretch **Blender Version** Trunk **Short description of error** Trial against ACES 1.0.3 set won't show all possible colour transforms when choosing via the UV Image Editor **Exact steps for others to reproduce the error** Load the ACES 1.0.3 configuration from the official repository. Try to change the colour transform on a loaded image. ![Screenshot from 2017-11-05 19-25-15.png](https://archive.blender.org/developer/F1097517/Screenshot_from_2017-11-05_19-25-15.png)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @troy_s

Added subscriber: @troy_s

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic

This is a general UI problem related to displaying a lot of entries in an EnumProperty. You can try this text code. Not only that the prop is going to miss the entries on the left, but also the whole pop-up going to be cut on the left if the Blender window is resized (for instance half of the screen).

import bpy
from bpy.props import (
    EnumProperty,
    PointerProperty,
)    

RANGE_MAX = 500


class whatever_props(bpy.types.PropertyGroup):
    def add_props(self, context):
        this_is_something = [(str(i), "Entry about something {}".format(i), 
                             "This is an entry number") for i in range(RANGE_MAX + 1)]
        return this_is_something
    
    some_something = EnumProperty(
        name="This is a test for EnumProperty size",
        items=add_props
    )
            


class LayoutDemoPanel(bpy.types.Panel):
    bl_label = "EnumProperty size screen fit Test"
    bl_idname = "SCENE_PT_layout"
    bl_space_type = 'PROPERTIES'
    bl_region_type = 'WINDOW'
    bl_context = "scene"

    def draw(self, context):
        layout = self.layout

        scene = context.scene

        # Create a simple row
        col = layout.column()
        col.label(text="Test for the EnumProperty:")
        col.prop(scene.whatever, "some_something", text="")
        


def register():
    bpy.utils.register_class(whatever_props)
    bpy.utils.register_class(LayoutDemoPanel)
    bpy.types.Scene.whatever = PointerProperty(type=whatever_props)


def unregister():
    bpy.utils.unregister_class(LayoutDemoPanel)
    bpy.utils.unregister_class(whatever_props)
    del bpy.types.Scene.whatever


if __name__ == "__main__":
    register()

Edit: the workaround would be to use an operator with invoke_props_dialog and calling the look with the col.prop(scene.view_settings, "look", expand=True)
The similar would apply to the color spaces (get the right prop and expanding it if it uses some custom ui wrapper).

using_invoke_props_dialog.jpg

Still it is annoying as it only expands downwards, however it can be navigated with up and down arrow keys and double pressing enter.

The real solution would be to rethink the widget to handle better a lot of items.

This is a general UI problem related to displaying a lot of entries in an EnumProperty. You can try this text code. Not only that the prop is going to miss the entries on the left, but also the whole pop-up going to be cut on the left if the Blender window is resized (for instance half of the screen). ``` import bpy from bpy.props import ( EnumProperty, PointerProperty, ) RANGE_MAX = 500 class whatever_props(bpy.types.PropertyGroup): def add_props(self, context): this_is_something = [(str(i), "Entry about something {}".format(i), "This is an entry number") for i in range(RANGE_MAX + 1)] return this_is_something some_something = EnumProperty( name="This is a test for EnumProperty size", items=add_props ) class LayoutDemoPanel(bpy.types.Panel): bl_label = "EnumProperty size screen fit Test" bl_idname = "SCENE_PT_layout" bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' bl_context = "scene" def draw(self, context): layout = self.layout scene = context.scene # Create a simple row col = layout.column() col.label(text="Test for the EnumProperty:") col.prop(scene.whatever, "some_something", text="") def register(): bpy.utils.register_class(whatever_props) bpy.utils.register_class(LayoutDemoPanel) bpy.types.Scene.whatever = PointerProperty(type=whatever_props) def unregister(): bpy.utils.unregister_class(LayoutDemoPanel) bpy.utils.unregister_class(whatever_props) del bpy.types.Scene.whatever if __name__ == "__main__": register() ``` Edit: the workaround would be to use an operator with `invoke_props_dialog` and calling the look with the `col.prop(scene.view_settings, "look", expand=True)` The similar would apply to the color spaces (get the right prop and expanding it if it uses some custom ui wrapper). ![using_invoke_props_dialog.jpg](https://archive.blender.org/developer/F1100061/using_invoke_props_dialog.jpg) Still it is annoying as it only expands downwards, however it can be navigated with up and down arrow keys and double pressing enter. The real solution would be to rethink the widget to handle better a lot of items.

Added subscriber: @JasonClarke

Added subscriber: @JasonClarke
Member

Added subscriber: @EAW

Added subscriber: @EAW

Added subscriber: @pauanyu_blender

Added subscriber: @pauanyu_blender
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:26:24 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#53257
No description provided.