Origin to 3D Cursor does not respect Cursor rotation #63470

Closed
opened 2019-04-10 21:03:17 +02:00 by Jacob Max Fober · 19 comments

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GT 1030/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 385.12

Blender Version
Broken: version: 2.80 (sub 55), branch: blender2.7, commit date: 2019-04-09 18:12, hash: 009dbc2bc9
Worked: (optional)

Short description of error
When you set object origin to 3D cursor it only accounts for Cursor XYZ location, discarding its rotation

Exact steps for others to reproduce the error

  1. Rotate and move 3D Cursor in the 'N' panel.
  2. Select default Cube and goto Object > Set Origin > Origin to 3D Cursor.

[Based on the default startup]

**System Information** Operating system: Windows-7-6.1.7601-SP1 64 Bits Graphics card: GeForce GT 1030/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 385.12 **Blender Version** Broken: version: 2.80 (sub 55), branch: blender2.7, commit date: 2019-04-09 18:12, hash: `009dbc2bc9` Worked: (optional) **Short description of error** When you set object origin to 3D cursor it only accounts for Cursor XYZ location, discarding its rotation **Exact steps for others to reproduce the error** 1. Rotate and move 3D Cursor in the 'N' panel. 2. Select default Cube and goto Object > Set Origin > Origin to 3D Cursor. [Based on the default startup]

Added subscriber: @Fubax-1

Added subscriber: @Fubax-1
Sebastian Parborg self-assigned this 2019-04-11 16:11:43 +02:00
Member

Added subscriber: @zazizizou

Added subscriber: @zazizizou
Member

It might make sense to consider cursor rotation for 'Snap Selection to Cursor' but I don't think the origin itself has a rotation, so I wouldn't classify this behavior as a bug.

If this turns out to be really a bug I can work on it. For linked objects I would suggest to rotate them as well according to the set Pivot Point.

It might make sense to consider cursor rotation for 'Snap Selection to Cursor' but I don't think the origin itself has a rotation, so I wouldn't classify this behavior as a bug. If this turns out to be really a bug I can work on it. For linked objects I would suggest to rotate them as well according to the set Pivot Point.

From a user point-of-view It seems logic to have origin axis rotated as 3D cursor. Since there's no other direct option to do that.

Imagine situation, where you import 3D Scan of an object that's off axis and rotated.
image.png

The only way to set origin to some flat surface now is:

  1. Project 3D cursor to rotated object geometry
  2. Create Empty object
  3. Set Transform Orientation to 3D Cursor
  4. Select Empty object and go to Object > Transform > Align to Transform Orientation
  5. Parent rotated object under the Empty with "Keep transform"
  6. Reset empty rotation and position
  7. Clear Parent for rotated object (and keep transform)
  8. Select Rotated object and go to Object > Apply > All transforms
From a user point-of-view It seems logic to have origin axis rotated as 3D cursor. Since there's no other direct option to do that. Imagine situation, where you import 3D Scan of an object that's off axis and rotated. ![image.png](https://archive.blender.org/developer/F6989887/image.png) The only way to set origin to some flat surface now is: 1. Project 3D cursor to rotated object geometry 2. Create Empty object 3. Set Transform Orientation to 3D Cursor 4. Select Empty object and go to Object > Transform > Align to Transform Orientation 5. Parent rotated object under the Empty with "Keep transform" 6. Reset empty rotation and position 7. Clear Parent for rotated object (and keep transform) 8. Select Rotated object and go to Object > Apply > All transforms

@zazizizou it is not really a bug per se. It's more a consistency in the UI. Now that we have rotation on the 3d cursor. It would be logical to at least have the option to use it for snapping.
If you want to make the snapping take into account the 3D cursor rotation, then by all means do so! :)

@zazizizou it is not really a bug per se. It's more a consistency in the UI. Now that we have rotation on the 3d cursor. It would be logical to at least have the option to use it for snapping. If you want to make the snapping take into account the 3D cursor rotation, then by all means do so! :)
Member

@Fubax-1 I'm not sure how Set Origin to Cursor would solve your problem. You could just clear rotation and location after importing if the information is there, otherwise you'll need to do something like

  1. Go to edit mode
  2. Select some flat surface
  3. Snape Cursor to Selection
  4. Go to object mode
  5. Set Origin to 3D Cursor.
    These steps don't change the rotation of the object though, but your suggestion of Set origin to 3D cursor would.

@ZedDB ok thanks. I agree with snapping so I'll start working on that :)

@Fubax-1 I'm not sure how Set Origin to Cursor would solve your problem. You could just clear rotation and location after importing if the information is there, otherwise you'll need to do something like 1. Go to edit mode 2. Select some flat surface 3. Snape Cursor to Selection 4. Go to object mode 5. Set Origin to 3D Cursor. These steps don't change the rotation of the object though, but your suggestion of Set origin to 3D cursor would. @ZedDB ok thanks. I agree with snapping so I'll start working on that :)

Added subscriber: @WilliamReynish

Added subscriber: @WilliamReynish

While I agree it would be nice if it were added, I am not sure we can really call it a bug - it's just a missing feature of the snapping operator.

While I agree it would be nice if it were added, I am not sure we can really call it a bug - it's just a missing feature of the snapping operator.

@zazizizou
Well with Set Origin to Cursor accounting for cursor rotation the process would look like:

  1. Select Cursor tool (make sure Surface Project is enabled it the Top Bar)
  2. Click on some flat surface
  3. Set Origin to 3D Cursor

@WilliamReynish
I understand your point of view. I'm not sure either if it's really a bug =) Maybe new category (not real bug)

@zazizizou Well with Set Origin to Cursor accounting for cursor rotation the process would look like: 1. Select Cursor tool (make sure Surface Project is enabled it the Top Bar) 2. Click on some flat surface 3. Set Origin to 3D Cursor @WilliamReynish I understand your point of view. I'm not sure either if it's really a bug =) Maybe new category (not real bug)

Added subscriber: @capnm

Added subscriber: @capnm

While I agree it would be nice if it were added, I am not sure we can really call it a bug - it's just a missing feature of the snapping operator.

From the user's point of view, most of us would certainly think aligning with the cursor
and ignoring the cursor rotation is a bug.

The same problem is when you add a new object. Anyone I asked would expect the
new object to be aligned with the cursor (unless he chooses the "Align to View" option).

> While I agree it would be nice if it were added, I am not sure we can really call it a bug - it's just a missing feature of the snapping operator. From the user's point of view, most of us would certainly think aligning with the cursor and ignoring the cursor rotation is a bug. The same problem is when you add a new object. Anyone I asked would expect the new object to be aligned with the cursor (unless he chooses the "Align to View" option).
Member

In #63470#668136, @capnm wrote:

While I agree it would be nice if it were added, I am not sure we can really call it a bug - it's just a missing feature of the snapping operator.

From the user's point of view, most of us would certainly think aligning with the cursor
and ignoring the cursor rotation is a bug.

The same problem is when you add a new object. Anyone I asked would expect the
new object to be aligned with the cursor (unless he chooses the "Align to View" option).

This refers to snapping and not setting the origin to 3D cursor. I think we all agree on that.

@Fubax-1 ok I thought by flat surface you meant a face of your object. However I still think that setting the origin to 3D cursor should not change the object's position or rotation (so keep the current behavior) and instead change snapping to consider cursor rotation.

> In #63470#668136, @capnm wrote: >> While I agree it would be nice if it were added, I am not sure we can really call it a bug - it's just a missing feature of the snapping operator. > From the user's point of view, most of us would certainly think aligning with the cursor > and ignoring the cursor rotation is a bug. > > The same problem is when you add a new object. Anyone I asked would expect the > new object to be aligned with the cursor (unless he chooses the "Align to View" option). This refers to snapping and not setting the origin to 3D cursor. I think we all agree on that. @Fubax-1 ok I thought by flat surface you meant a face of your object. However I still think that setting the origin to 3D cursor should not change the object's position or rotation (so keep the current behavior) and instead change snapping to consider cursor rotation.

In #63470#669238, @zazizizou wrote:
(...) (so keep the current behavior) and instead change snapping to consider cursor rotation.

Yes, that's exactly what I had in mind. Thanks

PS: Maybe idea for another tool:
Move Origin, while geometry stays stationary in World Space.

> In #63470#669238, @zazizizou wrote: > (...) (so keep the current behavior) and instead change snapping to consider cursor rotation. Yes, that's exactly what I had in mind. Thanks PS: Maybe idea for another tool: Move Origin, while geometry stays stationary in World Space.
Member

I submitted a patch that handles snap selected to cursor in object mode: D4897. Also feel free to leave some feedback on blenderartists

I submitted a patch that handles snap selected to cursor in object mode: [D4897](https://archive.blender.org/developer/D4897). Also feel free to leave some feedback on [blenderartists ](https://blenderartists.org/t/need-feedback-snap-selection-to-cursor-active-consider-rotation/)

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

We should review this patch for inclusion in 2.81, as it was submitted after the freeze for 2.80. But there is no bug here, it's a feature request.

We should review this patch for inclusion in 2.81, as it was submitted after the freeze for 2.80. But there is no bug here, it's a feature request.

Added subscriber: @HeCorr

Added subscriber: @HeCorr

I can't believe we're in 2022 and snapping a bone or an object to the 3D cursor doesn't affect it's rotation.

I can't believe we're in 2022 and snapping a bone or an object to the 3D cursor doesn't affect it's rotation.
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
7 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#63470
No description provided.