Maniphest T60756

Several Cameras to different viewports
Closed, Resolved

Assigned To
Philipp Oeser (lichtwerk)
Authored By
ALEXEY KOVALENKO (kovalex)
Jan 22 2019, 5:38 PM
Tags
  • BF Blender
Subscribers
ALEXEY KOVALENKO (kovalex)
Brecht Van Lommel (brecht)
Philipp Oeser (lichtwerk)
William Reynish (billreynish)

Description

Hello guys! Help me please? In 2.79 I can deactivate this buttons and see from dfferent cameras in viewports. But I can't find this option in 2.8

Revisions and Commits

rB Blender
D4247

Related Objects

Event Timeline

ALEXEY KOVALENKO (kovalex) created this task.Jan 22 2019, 5:38 PM
Philipp Oeser (lichtwerk) claimed this task.Jan 23 2019, 10:02 AM
Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to 50.
Philipp Oeser (lichtwerk) added subscribers: William Reynish (billreynish), Philipp Oeser (lichtwerk).

lock_camera_and_layers is not exposed in the UI atm afaics.

There have been some changes in 2.8 regarding layers / renderlayers and groups, see https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Layers

  • regarding (old) layers: If I understand correctly, the way to see different viewlayers in different 3D views is to open up a new main window (Window > New Main Window) and set the viewlayer there (you can choose in top right of your window)
  • regarding cameras: a views local camera is still in place codewise, but you can only choose it once lock_camera_and_layers is disabled (see issue above, it is not available atm...), checking on this...

@William Reynish (billreynish) : am I right on this?

William Reynish (billreynish) added a comment.Jan 23 2019, 10:05 AM

afaik this feature is currently missing in 2.8, Would be great to bring back somehow. Now Collection visibility is global for all viewports. We could but a toggle inside in the Viewport Collections popover to set this, so you can view different Collections for each viewport.

William Reynish (billreynish) added a subscriber: Brecht Van Lommel (brecht).Jan 23 2019, 10:06 AM

@Brecht Van Lommel (brecht): What are you thinking about the 'unlock viewport' feature? Is this something you consider a priority to bring back for 2.8?

Philipp Oeser (lichtwerk) added a comment.Jan 23 2019, 10:18 AM

feature is intact (regarding local cameras), see

1
2
3diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
4index f0bbc1d39dc..e01dd97b97f 100644
5--- a/release/scripts/startup/bl_ui/space_view3d.py
6+++ b/release/scripts/startup/bl_ui/space_view3d.py
7@@ -4205,6 +4205,9 @@ class VIEW3D_PT_view3d_properties(Panel):
8
9 col = flow.column()
10
11+ subcol = col.column()
12+ subcol.prop(view, "lock_camera_and_layers", text="")
13+
14 subcol = col.column()
15 subcol.enabled = not view.lock_camera_and_layers
16 subcol.prop(view, "camera", text="Local Camera")

(added to the sidebar View panel, you can then select a local camera per view)

it should just be checked against the usage of layers and cleaned up (happy to do this if it is agreed to bring this back)

William Reynish (billreynish) added a comment.EditedJan 23 2019, 10:22 AM

Ah ok. I guess it's more a design question then. Should we bring back support for per-viewport collections, and should they use the same toggle?

In a way per-viewport collections and per-viewport camera are fairly different, so I think it could make sense to just bring back that option as you suggest. We could call It 'Override Viewport Camera" ?

Later on, we could add a separate toggle inside the Collections visibility popover called Override Viewport Visibility.

@Brecht Van Lommel (brecht)? This is mostly a design issue re support for per-viewport collections. You ok with adding this for cameras for now at least?

Philipp Oeser (lichtwerk) added a comment.Jan 23 2019, 10:34 AM
  • reg. cameras: In the UI, could be called "Use scene Camera" [since default is ON]
  • reg layers: I guess this is pretty much tied to a main window now? (If at all) it should be a viewlayer [not collections] per view (since you set collections up for a viewlayer)?
Brecht Van Lommel (brecht) added a comment.Jan 23 2019, 11:27 AM

Let's add back this option is for the camera override only and rename it accordingly. Per-view collections visibility is something we can consider separately, it may not come back at all in this form.

ALEXEY KOVALENKO (kovalex) added a comment.Jan 23 2019, 12:20 PM

Yes, it's normal for other softs that in any viewport you can select any camera by list.

Brecht Van Lommel (brecht) added a comment.Jan 23 2019, 12:23 PM

This doesn't even need a "Use scene Camera" property really, we can just use the camera if it is set and remove the property. It would need a bit of versioning code to clear the camera is the option is off.

William Reynish (billreynish) added a comment.Jan 23 2019, 12:23 PM

Ok great, so we add this back and call it Use Scene Camera, which can be disabled, as @Philipp Oeser (lichtwerk) suggests.

The per-view collections visibility can then be added as a separate feature later on.

William Reynish (billreynish) added a comment.Jan 23 2019, 12:23 PM

@Brecht Van Lommel (brecht) Good point - that would be even smarter.

Philipp Oeser (lichtwerk) added a comment.Jan 23 2019, 1:37 PM
In T60756#605011, @Brecht Van Lommel (brecht) wrote:

This doesn't even need a "Use scene Camera" property really, we can just use the camera if it is set and remove the property. It would need a bit of versioning code to clear the camera is the option is off.

Still need to check a bit further, but we only have v3d->camera and scene->camera .
Then there is a bunch of code that keeps them in sync (check v3d->scenelock)
v3d->scenelock is also set in rna_SpaceView3D_lock_camera_and_layers_set, so if we dont use this toggle anymore, we'd have to make sure all is still working as expected
[check/update/remove all occurances of v3d->scenelock, or set scenelock appropriately somehow? wouldnt be sure when though...]
[also seems to be quite useful to quickly get your view back to the scene state?]

Or would that mean we'd set the v3d->camera to the scene->camera automatically when it is cleared (X button)?

Still needs a bit of thinking... [ at least on my side ;) ]

Brecht Van Lommel (brecht) added a comment.Jan 23 2019, 3:11 PM

Seems it is not trivial indeed, you can also just keep the boolean and we can simplify it later.

It would require refactoring the code so v3d->camera is not accessed directly throughout the code, but rather through a helper function that returns either the v3d or scene camera.

Philipp Oeser (lichtwerk) changed the task status from Unknown Status to Resolved by committing rB6100dc6a202c: bring back possibility to override camera per view.Jan 24 2019, 5:28 PM
Philipp Oeser (lichtwerk) added a commit: rB6100dc6a202c: bring back possibility to override camera per view.