You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depthdropper should ensure that the viewport is in camera view to use
active camera position, otherwise it should still use rv3d->viewinv[3]
to ensure correct distance result.
UI: Add eyedropper button to camera focus distance
Blender already had the ability to sample the depth with an eyedropper
and fill the focus distance (see "ui.eyedropper_depth"). But this feature
was fairly hidden. You had to hover over the focal_distance property
in the camera data panel and then press E (then sample a distance
in the 3D viewport).
This patch adds a prop_data_path property to the ui.eyedropper_depth
operator to allow specifying the property that should be filled with the
depth value.
The idea for this is taken from wm.radial_control, which also uses this
approach to write to a property. This allows us to add the eyedropper
as a button.
Blender
Blender finally added the camera eye dropper, a bit more elegant than our one, but we probably should update.
Here is the code in
properties_data_camera.py
Details
SHA-1: e8d028b
Depthdropper should ensure that the viewport is in camera view to use
active camera position, otherwise it should still use rv3d->viewinv[3]
to ensure correct distance result.
Pull Request: https://projects.blender.org/blender/blender/pulls/121339
More Details
UI: Add eyedropper button to camera focus distance
Blender already had the ability to sample the depth with an eyedropper
and fill the focus distance (see
"ui.eyedropper_depth"
). But this featurewas fairly hidden. You had to hover over the
focal_distance
propertyin the camera data panel and then press
E
(then sample a distancein the 3D viewport).
This patch adds a
prop_data_path
property to theui.eyedropper_depth
operator to allow specifying the property that should be filled with the
depth value.
The idea for this is taken from
wm.radial_control
, which also uses thisapproach to write to a property. This allows us to add the eyedropper
as a button.
Pull Request: #121486
The text was updated successfully, but these errors were encountered: