make transform modal map 'Orientation XXX axis' constraints more consistent with default ('X'/'Y'/'Z') behaviour #42354

Closed
opened 2014-10-22 21:23:11 +02:00 by Philipp Oeser · 7 comments
Member

Hi there,

I was recently approached by a former colleague [Softimage convert:)] to see if I could enable the following behaviour:

let's say the user configures shortcuts for 'Orientation X axis', 'Orientation Y axis' or 'Orientation Y axis' in 'Transform Modal Map'.
The behaviour then differs between these custom shortcuts and the default/hardcoded 'X', 'Y' and 'Z' keyboard keys.

This is what happens when the user has no shortcuts set:

  • enter transform (usually 'g')
  • press 'X' the first time: constraint to global X axis
  • press 'X' the second time: constraint to local (or better: whatever is currently set in SpaceView3D.transform_orientation) X axis
  • press 'X' the third time: constraint OFF
    so it cycles through these three... (which can be very convenient)
    [codewise this is handled by 'transform_event_xyz_constraint()' in transform.c]

This is what happens when the user has shortcuts set (see pic below):

  • enter transform (usually 'g')
  • press 'shortcut for X' the first time: global (or better: whatever is currently set in SpaceView3D.transform_orientation) X axis
  • press 'shortcut for X' the third time: constraint OFF
    so it just toggles between these two... (no chance to quickly toggle between e.g. global/local)
    [codewise this is handled more or less by calling 'setUserConstraint()' directly]
    TransformConstraintModalMapTweak.png

Well, the following little patch makes this more 'consistent' by also calling transform_event_xyz_constraint() in the case of the modal keymap.
(getting the exact same as the default ('X'/'Y'/'Z') behaviour)
TransformConstraintModalMapTweak.patch

Let me know what you think...

Hi there, I was recently approached by a former colleague [Softimage convert:)] to see if I could enable the following behaviour: let's say the user configures shortcuts for 'Orientation X axis', 'Orientation Y axis' or 'Orientation Y axis' in 'Transform Modal Map'. The behaviour then differs between these custom shortcuts and the default/hardcoded 'X', 'Y' and 'Z' keyboard keys. **This is what happens when the user has no shortcuts set:** - enter transform (usually 'g') - press 'X' the first time: constraint to _global_ X axis - press 'X' the second time: constraint to _local_ (or better: whatever is currently set in SpaceView3D.transform_orientation) X axis - press 'X' the third time: constraint OFF so it cycles through these three... (which can be very convenient) [codewise this is handled by 'transform_event_xyz_constraint()' in transform.c] **This is what happens when the user _has_ shortcuts set (see pic below):** - enter transform (usually 'g') - press 'shortcut for X' the first time: global (or better: whatever is currently set in SpaceView3D.transform_orientation) X axis - press 'shortcut for X' the third time: constraint OFF so it just toggles between these two... (no chance to quickly toggle between e.g. global/local) [codewise this is handled more or less by calling 'setUserConstraint()' directly] ![TransformConstraintModalMapTweak.png](https://archive.blender.org/developer/F119224/TransformConstraintModalMapTweak.png) Well, the following little patch makes this more 'consistent' by also calling transform_event_xyz_constraint() in the case of the modal keymap. (getting the exact same as the default ('X'/'Y'/'Z') behaviour) [TransformConstraintModalMapTweak.patch](https://archive.blender.org/developer/F119226/TransformConstraintModalMapTweak.patch) Let me know what you think...
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk

This issue was referenced by dbea73a30f

This issue was referenced by dbea73a30fc60f54449302a131a9d858f0c28bba

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit dbea73a30f.

Closed by commit dbea73a30f.
Author
Member

Added subscriber: @Psy-Fi

Added subscriber: @Psy-Fi
Author
Member

@Psy-Fi: Thanx for commiting!

@Psy-Fi: Thanx for commiting!
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
Interest: X11
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
3 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#42354
No description provided.