Option to use 3D cursor-center instead of origin for UV unwrapping (cube, cylinder, sphere) #47222

Closed
opened 2016-01-21 23:47:31 +01:00 by Campbell Barton · 14 comments

Currently when UV unwrapping using cube, cylinder, sphere.
The object origin is used for UV unwrapping uses the objects origin as the center for unwrapping.

However you may want to specify a different origin (instead of moving the selection first).

Currently when UV unwrapping using cube, cylinder, sphere. The object origin is used for UV unwrapping uses the objects origin as the center for unwrapping. However you may want to specify a different origin (instead of moving the selection first).
Author
Owner

Changed status to: 'Open'

Changed status to: 'Open'
Author
Owner

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Campbell Barton changed title from Option to use 3D cursor-center instead of origin for UV unwrapping (cube, cylinder, cylinder) to Option to use 3D cursor-center instead of origin for UV unwrapping (cube, cylinder, sphere) 2016-01-21 23:49:30 +01:00

Added subscriber: @NahuelBelich

Added subscriber: @NahuelBelich

Added subscriber: @mhmod

Added subscriber: @mhmod
Michał Ziobro self-assigned this 2016-02-02 18:02:20 +01:00
Michał Ziobro was unassigned by Campbell Barton 2016-06-10 02:26:45 +02:00
Member

Added subscriber: @SebastianWitt

Added subscriber: @SebastianWitt
Sebastian Witt self-assigned this 2016-09-15 14:24:30 +02:00
Member

Hi, to get into blender development i tried to solve this as a first practice.
Here is my approach:
https://developer.blender.org/P399
Two things I was wondering about:

  1. I had to alter the "ED_uvedit_unwrap_cube_project" to take the varying center into account.
    The function is referenced in "paint_image_proj.c". It now takes an additional parameter (offset) which can be null.
    I hope that is not a problem even though it is outside of the task's scope.
  2. I'm not very happy about how the center is set. Currently you have the option to "use cursor as center" which only updates when set.
    Is there a better way? Maybe have a button to "set center to cursor" which sets the center coordinates to the cursor. (Is it possible to have buttons in the operator settings?)

I hope this helps adding this functionality!
I tried following the coding Guidelines and hope my code is not to ugly ;)
I am happy about any tips to create better code or how the development pipeline works.

best regards,
Sebastian Witt

Hi, to get into blender development i tried to solve this as a first practice. Here is my approach: https://developer.blender.org/P399 Two things I was wondering about: 1. I had to alter the "ED_uvedit_unwrap_cube_project" to take the varying center into account. The function is referenced in "paint_image_proj.c". It now takes an additional parameter (offset) which can be null. I hope that is not a problem even though it is outside of the task's scope. 2. I'm not very happy about how the center is set. Currently you have the option to "use cursor as center" which only updates when set. Is there a better way? Maybe have a button to "set center to cursor" which sets the center coordinates to the cursor. (Is it possible to have buttons in the operator settings?) I hope this helps adding this functionality! I tried following the coding Guidelines and hope my code is not to ugly ;) I am happy about any tips to create better code or how the development pipeline works. best regards, Sebastian Witt

Added subscriber: @greasyblend

Added subscriber: @greasyblend

Is this still being worked on? I'd like to claim this task otherwise.

  • Cedric
Is this still being worked on? I'd like to claim this task otherwise. - Cedric
Member

Well the code i posted basically works, maybe I should create a revision for it. Apart from the questions it should work.
But since Campbell Barton left Blender as far as I know and this is not very important this is on ice.
I mean you can give it a shot if you want to try but its basically done.

  • Cery
Well the code i posted basically works, maybe I should create a revision for it. Apart from the questions it should work. But since Campbell Barton left Blender as far as I know and this is not very important this is on ice. I mean you can give it a shot if you want to try but its basically done. - Cery

Ok. I was a bit confused as the revisions you made hadn't been added to the most recent Blender source code. I'm guessing no-one else checks on these quick hacks but Campbell Barton? Is it still worth it to work on any of the "hacks" posted by Campbell then?

Ok. I was a bit confused as the revisions you made hadn't been added to the most recent Blender source code. I'm guessing no-one else checks on these quick hacks but Campbell Barton? Is it still worth it to work on any of the "hacks" posted by Campbell then?
Sebastian Witt was unassigned by Campbell Barton 2017-03-03 15:06:58 +01:00

Added subscriber: @vespersun

Added subscriber: @vespersun

Removed subscriber: @vespersun

Removed subscriber: @vespersun
Author
Owner

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Campbell Barton self-assigned this 2017-11-17 13:15:31 +01:00
Author
Owner

Resolved 759b50b20b

Resolved 759b50b20b
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
6 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#47222
No description provided.