diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-07-31 03:25:26 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-07-31 03:25:26 +0400 |
commit | 11b140fb3af47dca237442d42b39a198136cc379 (patch) | |
tree | eafecb464c57eeedffed4f575024a2d85ab47421 /release | |
parent | e4a16c8010f8bdf4bed4e2661929cd0858649d25 (diff) |
patch [#23110] isolate render type UI labelling + operator to clear all hide render flags in scene by Peter Schulman
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/op/object.py | 20 | ||||
-rw-r--r-- | release/scripts/ui/space_view3d.py | 4 |
2 files changed, 18 insertions, 6 deletions
diff --git a/release/scripts/op/object.py b/release/scripts/op/object.py index 0b052195541..403491bfa28 100644 --- a/release/scripts/op/object.py +++ b/release/scripts/op/object.py @@ -528,9 +528,9 @@ class MakeDupliFace(bpy.types.Operator): class IsolateTypeRender(bpy.types.Operator): - '''Select object matching a naming pattern''' + '''Hide unselected render objects of same type as active by setting the hide render flag''' bl_idname = "object.isolate_type_render" - bl_label = "Isolate Render Selection" + bl_label = "Restrict Render Unselected" bl_options = {'REGISTER', 'UNDO'} def execute(self, context): @@ -545,6 +545,17 @@ class IsolateTypeRender(bpy.types.Operator): obj.hide_render = True return {'FINISHED'} + +class ClearAllRestrictRender(bpy.types.Operator): + '''Reveal all render objects by setting the hide render flag''' + bl_idname = "object.hide_render_clear_all" + bl_label = "Clear All Restrict Render" + bl_options = {'REGISTER', 'UNDO'} + + def execute(self, context): + for obj in context.scene.objects: + obj.hide_render = False + return {'FINISHED'} classes = [ @@ -555,7 +566,8 @@ classes = [ ShapeTransfer, JoinUVs, IsolateTypeRender, - MakeDupliFace] + MakeDupliFace, + ClearAllRestrictRender] def register(): @@ -570,4 +582,4 @@ def unregister(): unregister(cls) if __name__ == "__main__": - register() + register()
\ No newline at end of file diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py index 5d22c3b41bb..7b59b00dc56 100644 --- a/release/scripts/ui/space_view3d.py +++ b/release/scripts/ui/space_view3d.py @@ -791,7 +791,7 @@ class VIEW3D_MT_object_specials(bpy.types.Menu): layout.separator() props = layout.operator("object.isolate_type_render") - + props = layout.operator("object.hide_render_clear_all") class VIEW3D_MT_object_apply(bpy.types.Menu): bl_label = "Apply" @@ -2388,4 +2388,4 @@ def unregister(): unregister(cls) if __name__ == "__main__": - register() + register()
\ No newline at end of file |