Addon: Set object origin from selected in edit mode #51009

Closed
opened 2017-03-20 15:56:09 +01:00 by blend-it · 8 comments
Member

Small script to set the origin of an object directly in edit mode, without the user have to place manually 3DCursor in editmode, switch to object mode, and set origin-to-cursor.

Code retrieved from https://blenderartists.org/forum/showthread.php?237785-Set-origin-to-selected and mixed with other users sparse code from thread comments. Thanks to original coder(s). Original attribution is in "author" field.

It use Alt-C shortcut or can be called with Spacebar>"Set Origin to Selected"
Generate an error on unregister (does not clean the shortcut?), but it do his job very well, so unregister is not mandatory :D
Very useful and fast.
object_origin_to_selection_revamp.py

Small script to set the origin of an object directly in edit mode, without the user have to place manually 3DCursor in editmode, switch to object mode, and set origin-to-cursor. Code retrieved from https://blenderartists.org/forum/showthread.php?237785-Set-origin-to-selected and mixed with other users sparse code from thread comments. Thanks to original coder(s). Original attribution is in "author" field. It use Alt-C shortcut or can be called with Spacebar>"Set Origin to Selected" Generate an error on unregister (does not clean the shortcut?), but it do his job very well, so unregister is not mandatory :D Very useful and fast. [object_origin_to_selection_revamp.py](https://archive.blender.org/developer/F516601/object_origin_to_selection_revamp.py)
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @blend-it

Added subscriber: @blend-it
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

hi, I'll have a look at your code, keep in mind this is already in both the dynamic spacebar menu & the new Origin Pie in viewport pies & there's several advanced addons dealing with origin externally.

hi, I'll have a look at your code, keep in mind this is already in both the dynamic spacebar menu & the new Origin Pie in viewport pies & there's several advanced addons dealing with origin externally.
Author
Member

Hi and thanks for your attention :)
I think that standard blender management of object origin is too complicated and slow.
I didn't know your addons, very interesting for more complex tasks.

I searched over the net something of extra-fast and easy to place the origin (also with direct shortcut), and I've aggregated some parts of code in this little script (90% not mine!).
It's so strange users must use an addon to do a so basic change; perhaps it was better if something similar was directly included in plain blender without any addon: the current way to place origin is totally unfriendly and "baroque" :D

Hi and thanks for your attention :) I think that standard blender management of object origin is too complicated and slow. I didn't know your addons, very interesting for more complex tasks. I searched over the net something of extra-fast and easy to place the origin (also with direct shortcut), and I've aggregated some parts of code in this little script (90% not mine!). It's so strange users must use an addon to do a so basic change; perhaps it was better if something similar was directly included in plain blender without any addon: the current way to place origin is totally unfriendly and "baroque" :D
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Brendon Murphy self-assigned this 2017-03-30 12:46:55 +02:00
Member

hi, I fully understand your points, which is why i have this much needed functinality in the spacebar menu addon & pie menu new in 2,79 "Origin Pies:.
Hopefully in 2,8 we will have built in method for this basic required function.
closing as resolved.

hi, I fully understand your points, which is why i have this much needed functinality in the spacebar menu addon & pie menu new in 2,79 "Origin Pies:. Hopefully in 2,8 we will have built in method for this basic required function. closing as resolved.
Author
Member

Other solutions are not light and fast as this one, but ok.

Other solutions are not light and fast as this one, but ok.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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-addons#51009
No description provided.