Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 1,210 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.operator("view3d.view_selected", text="Frame Selected").use_all_regions = False | layout.operator("view3d.view_selected", text="Frame Selected").use_all_regions = False | ||||
| if view.region_quadviews: | if view.region_quadviews: | ||||
| layout.operator("view3d.view_selected", text="Frame Selected (Quad View)").use_all_regions = True | layout.operator("view3d.view_selected", text="Frame Selected (Quad View)").use_all_regions = True | ||||
| layout.operator("view3d.view_all").center = False | layout.operator("view3d.view_all").center = False | ||||
| layout.operator("view3d.view_persportho", text="Perspective/Orthographic") | layout.operator("view3d.view_persportho", text="Perspective/Orthographic") | ||||
| layout.menu("VIEW3D_MT_view_local") | layout.menu("VIEW3D_MT_view_local") | ||||
| layout.prop(view, "show_viewer", text="Viewer Node") | |||||
| layout.separator() | layout.separator() | ||||
| layout.menu("VIEW3D_MT_view_cameras", text="Cameras") | layout.menu("VIEW3D_MT_view_cameras", text="Cameras") | ||||
| layout.separator() | layout.separator() | ||||
| layout.menu("VIEW3D_MT_view_viewpoint") | layout.menu("VIEW3D_MT_view_viewpoint") | ||||
| layout.menu("VIEW3D_MT_view_navigation") | layout.menu("VIEW3D_MT_view_navigation") | ||||
| ▲ Show 20 Lines • Show All 5,115 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if not is_wireframes: | if not is_wireframes: | ||||
| row.prop(overlay, "show_wireframes", text="") | row.prop(overlay, "show_wireframes", text="") | ||||
| sub = row.row() | sub = row.row() | ||||
| sub.active = overlay.show_wireframes or is_wireframes | sub.active = overlay.show_wireframes or is_wireframes | ||||
| sub.prop(overlay, "wireframe_threshold", text="Wireframe") | sub.prop(overlay, "wireframe_threshold", text="Wireframe") | ||||
| sub.prop(overlay, "wireframe_opacity", text="Opacity") | sub.prop(overlay, "wireframe_opacity", text="Opacity") | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.active = view.show_viewer | |||||
| row.prop(overlay, "show_viewer_attribute", text="") | |||||
| subrow = row.row(align=True) | |||||
| subrow.active = overlay.show_viewer_attribute | |||||
| subrow.prop(overlay, "viewer_attribute_opacity", text="Viewer Node") | |||||
| row = col.row(align=True) | |||||
| # These properties should be always available in the UI for all modes | # These properties should be always available in the UI for all modes | ||||
| # other than Object. | # other than Object. | ||||
| # Even when the Fade Inactive Geometry overlay is not affecting the | # Even when the Fade Inactive Geometry overlay is not affecting the | ||||
| # current active object depending on its mode, it will always affect | # current active object depending on its mode, it will always affect | ||||
| # the rest of the scene. | # the rest of the scene. | ||||
| if context.mode != 'OBJECT': | if context.mode != 'OBJECT': | ||||
| row.prop(overlay, "show_fade_inactive", text="") | row.prop(overlay, "show_fade_inactive", text="") | ||||
| ▲ Show 20 Lines • Show All 1,718 Lines • Show Last 20 Lines | |||||