More info on 3D View name display #31797

Closed
opened 2012-06-12 13:38:04 +02:00 by Pablo Vazquez · 11 comments
Member

%%%Hi,

Some options (specially locking) in 3D View need to be exposed more: happens sometimes when opening other's files (or own even) is hard to find out why the view doesn't pan/move, until you go and check the N panel.

This basically adds handy information to the view's name, such as:

  • Only Render as (Render)
  • Locked to Object as (Locked to )
  • Lock to Cursor as (Locked to Cursor)
  • Lock to Camera View as (Locked) -only displayed when in camera view

Also does some little tweaks:

  • If an object is used as Camera, then display it's name, rather than generic "Object as Camera"
  • If our Camera is "Panoramic", display it (as it does for Perspective/Orthographic)
  • When not using active scene's camera/layers, show the view name in brackets []

Screenshot (also attached):
http://pablovazquez.org/dev/view3d_viewname.jpg

I have no experience in coding, I just miss this while teaching/making tutorials and found out how to do it messing with the code. So please any hint or kicking is gladly appreciated.

Cheers!%%%

%%%Hi, Some options (specially locking) in 3D View need to be exposed more: happens sometimes when opening other's files (or own even) is hard to find out why the view doesn't pan/move, until you go and check the N panel. This basically adds handy information to the view's name, such as: - Only Render as (Render) - Locked to Object as (Locked to <objectname>) - Lock to Cursor as (Locked to Cursor) - Lock to Camera View as (Locked) -only displayed when in camera view Also does some little tweaks: - If an object is used as Camera, then display it's name, rather than generic "Object as Camera" - If our Camera is "Panoramic", display it (as it does for Perspective/Orthographic) - When not using active scene's camera/layers, show the view name in brackets [] Screenshot (also attached): http://pablovazquez.org/dev/view3d_viewname.jpg I have no experience in coding, I just miss this while teaching/making tutorials and found out how to do it messing with the code. So please any hint or kicking is gladly appreciated. Cheers!%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%when doing strprintf or BLI_snprintf the source and the destination should never overlap - which may happen because of:

name = tmpstr;
....
BLI_snprintf(tmpstr, sizeof(tmpstr), "%s (Render)", name);

The best thing to do here would be to do...

offset = 0;
...
offset += BLI_snprintf(tmpstr + offset, sizeof(tmpstr) - offset, "%s (Render)", name);
...

etc
%%%

%%%when doing strprintf or BLI_snprintf the source and the destination should never overlap - which may happen because of: name = tmpstr; .... BLI_snprintf(tmpstr, sizeof(tmpstr), "%s (Render)", name); The best thing to do here would be to do... offset = 0; ... offset += BLI_snprintf(tmpstr + offset, sizeof(tmpstr) - offset, "%s (Render)", name); ... etc %%%
Julian Eisel was assigned by Sergey Sharybin 2015-04-03 12:46:21 +02:00

Added subscribers: @JulianEisel, @Sergey

Added subscribers: @JulianEisel, @Sergey

@JulianEisel, guess you'll be interested in this patch :)

@JulianEisel, guess you'll be interested in this patch :)
Member

I am ;)

I am ;)
Member

@venomgfx, since this is already pretty old, would you mind going over the list of added info to check which info you'd still consider as useful? I can then make things ready for master (and commit if changes remain trivial)

@venomgfx, since this is already pretty old, would you mind going over the list of added info to check which info you'd still consider as useful? I can then make things ready for master (and commit if changes remain trivial)
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

What is the status here?

What is the status here?

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'

Hi, thanks for your patch.

We are undergoing a Tracker Curfew where we are automatically closing old patches.

If you think the patch is still relevant please update and re-submit it. For new features make sure there is a clear design from the user level perspective.

Hi, thanks for your patch. We are undergoing a [Tracker Curfew ](https://code.blender.org/?p=3861) where we are automatically closing old patches. If you think the patch is still relevant please update and re-submit it. For new features make sure there is a clear design from the user level perspective.
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
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
6 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#31797
No description provided.