Maniphest T24042

Toggle visibility/renderablilty for object an all child-objects
Closed, DuplicatePATCH

Assigned To
None
Authored By
Torsten Rupp (rupp)
Sep 28 2010, 8:59 AM
Tags
  • User Interface
  • BF Blender
Subscribers
Benjamin Dahl (bennyd)
khaled abdelhay (catchyid)
Torsten Rupp (rupp)

Description

This patch is a proposal for a different behavior of the outliner toggle visibility/renderability buttons (and corresponding keyboard functions): toggle visibility/renderablilty for the object an all child-objects. I tested this different functionality on my own build Blender 2.5 now for awhile and I find this new behavior more intuitiv and useful.

What the the patch changes:

When you have multiple objects which are linked via the parent relation to some main-object (many times this is an "Empty"-object) and you click on the toggle buttons for visibility and renderability for the main-object the visibility and renderability of that object only is changed, not the visibility/renderability of the child-objects. This is IMHO a little confusing and annoying, because to changed the visibility/renderability of the whole multi-part object you have to click on each child-object (please correct me if this functionality is already there and I did not find it). With the patch the visibility/renderability of all child-objects is toggled, too, except those which are not selectable. Thus making the whole multi-object visible/renderable resp. not visble/renderable. The not-selectable-exception is IMHO useful if some object should e. g. never be shown or rendered, like helping objects for making holes in some other object etc.

The patch contain:

- new function propagate_restrict_flag() which propagate a given restriction flag to the settings of the supplied object
- when the visibility/renderability of an object is changed, call function propagate_restrict_flag() to propagate the new state down to all child-objects (except those who have OB_RESTRICT_SELECT set)

It would be nice if someone could have an review of this idea and patch. Thanx.

Event Timeline

Torsten Rupp (rupp) edited a custom field.Sep 28 2010, 8:59 AM
Torsten Rupp (rupp) attached 1 file(s): F10134: outliner-operation-all.patch.
Torsten Rupp (rupp) added a comment.Nov 8 2010, 7:59 AM

update patch to r32936

Torsten Rupp (rupp) attached 1 file(s): F10135: outliner-operation-all.patch.Nov 8 2010, 7:59 AM
Torsten Rupp (rupp) added a comment.Jan 5 2011, 6:43 AM

updated to r34026

Torsten Rupp (rupp) attached 1 file(s): F10138: outliner-operation-all.patch.Jan 5 2011, 6:43 AM
Torsten Rupp (rupp) attached 1 file(s): F10139: outliner-operation-all.patch.Jul 3 2011, 11:15 AM

updated to r37993

Torsten Rupp (rupp) added a comment.Dec 6 2011, 4:44 AM

I updated to recent trunk, r42450.

I\m looking forward to see this patch integrated.

Torsten Rupp (rupp) attached 1 file(s): F10142: outliner-operation-all.patch.Dec 6 2011, 4:44 AM
khaled abdelhay (catchyid) added a subscriber: khaled abdelhay (catchyid).EditedFeb 10 2014, 2:19 PM

Hi,
I was looking for hide/show visibility for a group of objects and I found this patch, so first thanks, I think it's very useful.

My question: is there any catalog/repository for all patches related to UI in blender? i.e. something similar to "Addons" Project (i.e. http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts) but for UI?

Update 1: I just realized it's a patch :) I think I will need to merge it to my local copy of blender?

Update 2: I thought it's Python patch, but it's a C patch :) So, I will have to wait until it gets integrated in the source base? Otherwise I will have to compile blender myself, right?

Thanks in advance,

Torsten Rupp (rupp) changed the task status from Unknown Status to Duplicate.Mar 16 2014, 11:27 AM

✘ Merged into T39211.