Giter VIP home page Giter VIP logo

scripts's Introduction

Blender

Maya Style Merge Tool

Usage: Get mesh_merge_tool.zip from the latest release install it and then in Edit mode use the new tool that appears in the left-side Toolbar. You can right click on the tool icon to set a hotkey for switching to the tool.

You can also choose to hotkey mesh.merge_tool in the Blender Preferences > Keymap > 3D View > Mesh > Mesh (Global) if you wish to call the operator directly instead of using the tool (NOTE: It is recommended that if you choose to do this then you should enable the "Wait for Input" checkbox when setting up your hotkey.

Click and hold the left mouse button on a vertex or edge and then drag it onto a second vertex or edge and release the mouse button to merge them. You can control whether to merge at the first or last vertex/edge, or the center between the two, via a dropdown in the Tool Settings bar at the top of the 3D Viewport, OR you can press the 1, 2, 3, A, C, F, or L key while dragging to change the merge location on the fly before you release the mouse button.

  • 1, A, or F will merge at the First component.
  • 2 or C will merge at the Center between the two.
  • 3 or L will merge at the Last component.

In vertex mode, if there is a starting selection and the tool is invoked on one of those vertices, then all vertices in the selection will be merged at the desired location.

Multi-merge, line and point size, and colors can be controlled from the add-on preferences.

Context Select (Emulates Maya's selections)

Usage: object.context_select is automatically added to Blender's keymap when the add-on is installed (this can be disabled from the add-on's preferences after being installed).
Key entries are located in Blender Preferences > Keymap > 3D View > Mesh > Mesh (Global)
Default keys are double-click to set a new selection and shift + double-click to extend a selection.

  • Selection works for all 3 component types (vertices, edges, faces).
  • The script selects full loops of vertices, edges, or faces, and also full rings of edges. (With several preferences to modify selection behavior.)
  • It can also create bounded selections between two components (e.g. similar to Blender's Select Shortest Path but constrained to a loop or ring only). Single-click (or shift + single-click) the first component, then shift + double-click the second component within the same loop or ring to create the bounded selection.
  • All of the above functionality works on manifold quad topology for all 3 component types, it also works on the boundary of an open mesh for vertices and edges, and it also works on single wire loops (e.g. like the Circle primitive type) for vertices and edges.

LIMITATIONS:

  • At this time the add-on can only create or add to a selection; it cannot subtract from a selection (full loop or bounded deselection).
  • The add-on has not been tested in the UV viewport, only in the 3D viewport, so it may not work there.

Edges To Curve

Usage: Select edge(s) then search for Edges To Curve in the spacebar menu, or the Edges menu in the top of the viewport, or the Context menu, or hotkey object.edge_to_curve
Left Mouse confirms, Right Mouse cancels, Mouse Wheel increases or decreases resolution.

Duplicate Along Curve

Usage: Select one curve and one object, then search for Duplicate Along Curve in the spacebar menu or hotkey object.duplicate_along_curve

scripts's People

Contributors

mightybobcnc avatar stromberg90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scripts's Issues

Strange behaviour of the MergeTool addon

Hi.

I have just tested the latest version of your MergeTool addon (beec6d9) and I noticed a strange behaviour.

Vertices do merge correctly but I can see the red line (illustrating the merge) a few pixels away (mostly above).

This makes me think that there is a bug when the user is moving a vertex onto another one.

qk6GBM6vje

Enable Edge Loops and Edge Rings with "Select Circle"

I use Context Select on Blender 2.81 alpha (51be0a765e44-win64) and everything works fine with the Box-Selection but not really with the Circle-Selection, hence this request:

I mostly use the Circle Selection (radius=10) because it allows to select many edges very quickly but unfortunately, when I double click on an edge to create an "Edge Loop" selection, it doesn't work, same for Edge Rings with the "Select Circle" Tool.

It would be awesome if you could make this script compatible with the "Select Circle" Tool.

Terminate Self Intersects Doesn't Always Function

In some circumstances the Terminate Self Intersects add-on preference for the Context Select script does not function.

It has been observed that this sometimes happens if the starting component is right next to the intersect location but there could possibly be other instances to be investigated.

image

image

Edge to Curve & Blender 3.1 error

Hai

I'm crashing :- (((

Python: Traceback (most recent call last):
File "C:\Users\Master\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\Edge_To_Curve.py", line 138, in invoke
context.object.data.fill_mode = "FULL"
AttributeError: 'Mesh' object has no attribute 'fill_mode'

location: :-1

Are scripts compatible with Blender 2.8 ?

Are scripts compatible with Blender 2.8 ?

I keep trying to install them but they never get listed in the addons list.
Am I doing something wrong or maybe the scripts are not compatible with blender 2.8 ?

Thanks for your help.

Install Issues

Was wondering if anyone else has had issues installing your addons? I cannot seem to get any of them to install on any 2.8 version of Blender for some weird reason.

Use hotkey for Merge Tool?

Is it possible to setup a hotkey for the Merge Tool instead of having to use Search?

I wanted to run this tool every time I press Alt+W, being a noob, I try set up the hotkey using object.merge_tool but it doesn't work, I guess it is not that simple... hope there is a way for this tool to be run by a hotkey.

Thanks for the tool btw :)

ContextSelect Bug: Double Clicking on the mesh (Object Mode) creates an error

Hi. I have noticed a bug while using Context Select.
I just created a UV Sphere, entered Edit Mode, selected several edges, double-clicked on several edges to create Edge Loops. Everything worked.

But then I left Edit Mode and I went back to Object Mode, double clicked on the mesh (my UV Sphere) and I got this error message:

Capture2

I have tried twice these steps, I am 70-80% sure that's what I did to produce the bug.
But after that, I have tried to reproduce this bug again and again (following the same steps) without success. ๐Ÿ˜•

And then I noticed another strange thing : double clicking in an empty area of the viewport toggled Edit Mode / Object Mode.

Documentation and Report a bug links

In the bl_info paragraph of your python files, I think that you should add these two clickable buttons in the Preferences > Addon details.

Documentation_ReportABug

"wiki_url": "https://github.com/Stromberg90/Scripts/tree/master/Blender",
"tracker_url: "https://github.com/Stromberg90/Scripts/issues",

Context Select Bug: It selects Edge Loops that are behind the mesh

In Edit Mode, Viewport Shading: Solid but also in Wireframe, double click on an edge to create an Edge Loop selection, everything works fine as it should.

But if you target next to an edge, for example, in the middle of a face, Context Select creates an Edge Loop but on the back side of the mesh.

MergeTool bug: StructRNA of type MergeTool has been removed

I got this error inside blender-2.81-4764362ebb91-windows64.

Traceback (most recent call last):
  File "C:\Users\Nadine\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\MergeTool.py", line 87, in modal
    main(context, event, self.started)
  File "C:\Users\Nadine\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\MergeTool.py", line 61, in main
    bpy.ops.mesh.select_all(action='DESELECT')
  File "G:\Nadine\archived_softwares\blender\blender_dailybuild\2.81\scripts\modules\bpy\ops.py", line 201, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.mesh.select_all.poll() failed, context is incorrect

location: <unknown location>:-1

And this error, in the console:

.
.
.
Traceback (most recent call last):
  File "C:\Users\Nadine\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\MergeTool.py", line 35, in draw_callback_px
    if self.started:
  File "G:\Nadine\archived_softwares\blender\blender_dailybuild\2.81\scripts\modules\bpy_types.py", line 672, in __getattribute__
    properties = StructRNA.path_resolve(self, "properties")
ReferenceError: StructRNA of type MergeTool has been removed
Traceback (most recent call last):
  File "C:\Users\Nadine\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\MergeTool.py", line 35, in draw_callback_px
    if self.started:
  File "G:\Nadine\archived_softwares\blender\blender_dailybuild\2.81\scripts\modules\bpy_types.py", line 672, in __getattribute__
    properties = StructRNA.path_resolve(self, "properties")
ReferenceError: StructRNA of type MergeTool has been removed
Traceback (most recent call last):
  File "C:\Users\Nadine\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\MergeTool.py", line 35, in draw_callback_px
    if self.started:
  File "G:\Nadine\archived_softwares\blender\blender_dailybuild\2.81\scripts\modules\bpy_types.py", line 672, in __getattribute__
    properties = StructRNA.path_resolve(self, "properties")
ReferenceError: StructRNA of type MergeTool has been removed
Traceback (most recent call last):
  File "C:\Users\Nadine\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\MergeTool.py", line 35, in draw_callback_px
    if self.started:
  File "G:\Nadine\archived_softwares\blender\blender_dailybuild\2.81\scripts\modules\bpy_types.py", line 672, in __getattribute__
    properties = StructRNA.path_resolve(self, "properties")
ReferenceError: StructRNA of type MergeTool has been removed
.
.
.

Merge Tool : Request , preserve right click for navigation

A tiny request, can "right click" "left click" and "alt" be preserved for navigation to work around the mesh without the need to exit and re_enter the tool, maybe as an addon preferences ?

Now i understand ,this will need a little more work than what i was thinking.

An ideal workflow will be :

M or( something else) to enter the tool .
Esc to exit the tool.

I understand also that adding ctrl+z inside the tool will require more work, but it's not that a big deal since you can exit the tool and then ctrl+z.

Context Select Hybrid --- AttributeError: 'NoneType' object has no attribute 'edge'

Addon version : Context Select hybrid 0.2.4
Blender version : 2.91

The following error appears after selecting three edges (with SHIFT+left click) then double-clicking on another edge.

Blend File: https://pasteall.org/blend/fb7fdb8fc3324088ae4d02eff8e8c56f

Python: Traceback (most recent call last):
  File "E:\blender_stable\2.91\scripts\addons\ContextSelect.py", line 289, in execute
    return context_edge_select(context, self.mode)
  File "E:\blender_stable\2.91\scripts\addons\ContextSelect.py", line 531, in context_edge_select
    new_sel = full_loop_edge_manifold(active_edge)
  File "E:\blender_stable\2.91\scripts\addons\ContextSelect.py", line 1229, in full_loop_edge_manifold
    opposite_edge = get_opposite_edge(edge, starting_vert)
  File "E:\blender_stable\2.91\scripts\addons\ContextSelect.py", line 1919, in get_opposite_edge
    opposite_edge = opposite_loop.edge
AttributeError: 'NoneType' object has no attribute 'edge'

location: <unknown location>:-1

Context Select: double clicking a face selects all faces

Hi.

I am not sure this is an intended behaviour or not but I find it pretty annoying.
When I try to create face loops, sometimes ContextSelect selects all faces of the mesh.

Reproducing steps:

  • just double click on the same face, it will select all faces.
  • try to create a face loop, sometimes it works, sometimes it will select all faces.

I am using the blender-2.81-4707f1982ddb-windows64 Daily Build.

vMuBhAonAK

It is impossible to select 2 or more objects

Your addon Merge Tool is very useful, thanks!
But I had a very unpleasant problem because of which I cannot keep it on all the time - every time I try to select 2 or more objects in Object mode using the held down shift = Traceback error occurs (in the screenshot). Perhaps this is due to the fact that I am using the Maya Config Addon (https://gumroad.com/l/FKhQL), but I'm not sure. This is very annoying, so I have to turn off everytime your addon until I need it again...
image_2021-01-09_11-54-58
image_2021-01-09_12-06-23

No addon version ?

Hi.

I just wanted to know if the lack of addon version (in your .py files) is on purpose?

I tend to think that this information is convenient (useful to know if the user has the latest version or an old one..)

Bug with Blender 2.90.1 (resolved) / Tiny request

First i want to say thank you, this function is amazing, coming from maya this is a must.

i'm having this error with Blender 2.90.1 :

Traceback (most recent call last):
File "E:\BIDULCHOUET\Blender\B_HUMAN\Scripts\addons\MergeTool.py", line 107, in modal
for v in self.bm.verts:
ReferenceError: BMesh data of type BMesh has been removed

location: :-1

This is really weird cause i don't have this error in blender 2.91 alpha or blender 2.90.

Edit : This is not coming from your code, i'm sorry, this is coming from hardops,
if i use their multi edit tool and then i use yours, it throws an error/

The ability to make it merge on release is one less click , so it's more efficient in my point view,
that's why i think your tool is superior.

A tiny request, can right click be preserve for navigation and "Esc" be used to cancel operation ?

Context Select: error while sculpting

Hi

I noticed an error message while sculpting. I was just using the Draw (sculpting) tool.

ContextSelect_Sculpting

I am currently using the blender-2.81-54a9649e2636-windows64 Daily Build.

Edge to Curve, not understanding how to get it to work

Hi, I have selected some edges in edit mode, run the edge to curve script and this error comes up:
What am I doing wrong?

Traceback (most recent call last):
File "C:\Users\semil\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\edge_to_curve.py", line 108, in invoke
self.original_object = bpy.context.selected_objects[0]
IndexError: list index out of range

location: :-1

Edges to curves Blender 2.90.1

the plugin installs fine, but it doesn't seem to work with the latest version of Blender 2.90.1. It does not show up in the search function.

Package Edge to Curve and Merge Tool together and add UI/menu buttons?

A user on the Blender Artists forum would like to merge the Edge to Curve and the Merge Tool into one add-on and add buttons in the Edit mode Edge context menu to access the tools without needing to use the Search operator. (This is particularly relevant due to the way that Blender has changed the return results from the Search operator in recent versions; everything should really go in a menu now. See #24 )

https://blenderartists.org/t/need-assistance-to-combine-2-scripts-in-one-single-addon/1269714

I'm happy to do the work but I'd want your go-ahead first @Stromberg90 since this represents a structural change from two add-ons to one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.