object rotate python API #67393
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#67393
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10
Graphics card: RTX 2060
Blender Version
Broken: 2.80 RC 2
Short description of error
Python API does not rotate camera around 3d cursor but around local camera axis. See this screendump:
Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).
Run the following script: rotatebug.py
Added subscriber: @jdk
Added subscriber: @dr.sybren
I can confirm that the attached code rotates the camera around its own origin, rather than the 3D cursor.
Generally it's better to not use operators to perform transformations, though. Rotating around an arbitrary point can be done without moving the 3D cursor by multiplying the object's matrix. This is also generally faster than relying on operators, and easier to control (you don't have to change the active object, don't have to change the 3D cursor, etc.).
Added subscriber: @ideasman42
Changed status from 'Confirmed' to: 'Archived'
I'm closing this as Known Issue, as the operators are working as designed and are hard to change without influencing many other areas of Blender.
As I said my earlier comment, changing the object's matrix is a better way to rotate; it's more reliable, and it doesn't make users loose their 3D cursor position.