Cycles cull option ui problem #50460

Closed
opened 2017-01-18 10:12:47 +01:00 by Ronny G · 11 comments

System Information
ubuntu 16.04, 630gt

Blender Version
Broken: master 0a446d7

Short description of error

if the option "use camera cull" is active in the simplify panel the per object (use camera cull) setting is grayed out and if the "use distance cull" is active both per object options are active

that would work https://hastebin.com/odoyelozej.vbs

**System Information** ubuntu 16.04, 630gt **Blender Version** Broken: master 0a446d7 **Short description of error** if the option "use camera cull" is active in the simplify panel the per object (use camera cull) setting is grayed out and if the "use distance cull" is active both per object options are active that would work https://hastebin.com/odoyelozej.vbs
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @nudelZ

Added subscriber: @nudelZ

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic

The behavior of .active with rows that share the same parent can be an issue that can show up elsewhere in the UI, so adding user interface tag too.

If it is an expected behavior, it probably needs documenting the proper usage in this case.
Possibly .disabled acts similarly too.

The behavior of `.active` with rows that share the same parent can be an issue that can show up elsewhere in the UI, so adding user interface tag too. If it is an expected behavior, it probably needs documenting the proper usage in this case. Possibly `.disabled ` acts similarly too.

Added subscriber: @dfelinto

Added subscriber: @dfelinto
Thomas Dinges was assigned by Dalai Felinto 2017-01-20 09:54:24 +01:00

Thomas, care to look at it?

Thomas, care to look at it?

I don't see how this is an underlying issue with the layout engine. Using a .active or .disabled tag, assigned to a certain layout block will affect all of its assigned properties. So using two different UI blocks is a proper fix.

Will commit a fix based on Ronnys suggestion.

I don't see how this is an underlying issue with the layout engine. Using a .active or .disabled tag, assigned to a certain layout block will affect all of its assigned properties. So using two different UI blocks is a proper fix. Will commit a fix based on Ronnys suggestion.

This issue was referenced by blender/cycles@72abe48a66

This issue was referenced by blender/cycles@72abe48a66b3d6fdd5b850691a451670e96396ac

This issue was referenced by ff1b850081

This issue was referenced by ff1b850081b067ea0b989bdc62c2d85f36e23524

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

In #50460#413079, @ThomasDinges wrote:
I don't see how this is an underlying issue with the layout engine. Using a .active or .disabled tag, assigned to a certain layout block will affect all of its assigned properties. So using two different UI blocks is a proper fix.

Will commit a fix based on Ronnys suggestion.

I do understand but:

  1. It's not documented in the Python Docs
  2. .alert behaves differently (it's capable of marking individual entries of children)
  3. complicates generated code - especially for operators aligned in a row (for instance, something similar to thing in development_icons_get.py add-on)

To show the point this is the modified code from D2464.

Using alert:

                for i in range(1, strip_channel):
                    if (i % BT_ROW) == 1:
                        row = col.row(align=True)

                    row.alert = True if i == strip.multicam_source else False
                    row.operator("sequencer.cut_multicam", text="%d" % i).camera = i

Workarond for .active:

                for i in range(1, strip_channel):
                    if (i % BT_ROW) == 1:
                        row = col.row(align=True)

                    # Workaround - .active has to have a separate UI block to work
                    if i == strip.multicam_source:
                        sub = row.row(align=True)
                        sub.active = True
                        sub.operator("sequencer.cut_multicam", text="%d" % i).camera = i
                    else:
                        sub_1 = row.row(align=True)
                        sub_1.active = False
                        sub_1.operator("sequencer.cut_multicam", text="%d" % i).camera = i

Anyway, this could be a Topic for 2.8 and it is probably outside of the scope of this task.

> In #50460#413079, @ThomasDinges wrote: > I don't see how this is an underlying issue with the layout engine. Using a .active or .disabled tag, assigned to a certain layout block will affect all of its assigned properties. So using two different UI blocks is a proper fix. > > Will commit a fix based on Ronnys suggestion. I do understand but: 1) It's not documented in the Python Docs 2) `.alert` behaves differently (it's capable of marking individual entries of children) 3) complicates generated code - especially for operators aligned in a row (for instance, something similar to thing in `development_icons_get.py` add-on) To show the point this is the modified code from [D2464](https://archive.blender.org/developer/D2464). Using `alert`: ``` for i in range(1, strip_channel): if (i % BT_ROW) == 1: row = col.row(align=True) row.alert = True if i == strip.multicam_source else False row.operator("sequencer.cut_multicam", text="%d" % i).camera = i ``` Workarond for `.active`: ``` for i in range(1, strip_channel): if (i % BT_ROW) == 1: row = col.row(align=True) # Workaround - .active has to have a separate UI block to work if i == strip.multicam_source: sub = row.row(align=True) sub.active = True sub.operator("sequencer.cut_multicam", text="%d" % i).camera = i else: sub_1 = row.row(align=True) sub_1.active = False sub_1.operator("sequencer.cut_multicam", text="%d" % i).camera = i ``` Anyway, this could be a Topic for 2.8 and it is probably outside of the scope of this task.
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#50460
No description provided.