UniConnector

41 votes
Version: 
4.22
Date Updated: 
05/25/2023
Author Name: 
Nikolay Litvinov





All this works by single hotkey.

Additional Info: 

Install: Drop *.ms to viewport

Установка: Перетащить *.ms во въюпорт
Know issue: Crush of max when make undo after create line by knots in splines
Известная проблема: Вылет макса при undo после создания линии от узлов в сплайнах

v4.22
Target Weld переместился на условие, если ни одной вершины не выбрано,
а на месте условия, что выбрана 1 вершина и запущен скрипт - будет происходить коннект вершин к первой выбранной, Завершить коннект и выйти из режима коннекта - нажать Shift.
А если всего будет выделено 2 вершины, то первая приварится ко второй (как Target Weld)

Target Weld moved to the condition if no vertices are chosen,
and in place of the condition that 1 vertex is selected and the script is running - the connection of vertices to the first selected vertex will take place, end the connection and exit the connection mode - press Shift.
And if a total of 2 vertices will be selected, the first will be welded to the second (like Target Weld)

v4.0
The connection of two spline nodes works faster.
Побыстрей работает коннект двух узлов сплайна.

v3.97
v3.98
Fixed bug of Target Weld under EditPoly modifier at 1 vertex selected.
Исправил ошибку Target Weld под модификатором EditPoly при 1 выбранной вершине.
v3.97
Fixed bug of connecting edges.
Исправил ошибку коннекта рёбер.

v3.96
Fixed the error of connecting edges and vertices under the turbosmooth modifier.
Исправил ошибку коннекта рёбер и вершин под модификатором turbosmooth.

v3.95
Fixed an error getting a bridge instead of a dividing edge when connecting two edges in a simple polygon of 3 or 4 vertexes.
Исправлена ошибка получения моста вместо разделяющего при коннекте двух рёбер в простом полигоне из 3 или 4 вершин.

v3.94
Fixed bug of bridge or connect 2 edges in objects with simple geometry
Fixed bug of divide of segments splines
Added connect NGon by connect 2 vertex
v3.91 Fixed bug of bridge 2 edges
v3.9 Added Refine and Refine Connect (by button of UI) functions in splines
v3.87 Fixed bug of bridge >=2 edges
v3.85: Fixed bug of create Edge between vertices in object under any modifiers
v3.86 Fixed bug of connect of vetices, edges with any modifiers
v3.85.1 Adds Edit_Poly on objects of all classes (including splines)
v3.84: Fixed TargetWeld at one selected vetrex under any modifiers.
v3.83: Honfix(patch) connect edges in EditPoly
v3.8: Added through connect 2 edges. Добавлен сквозной коннект пары рёбер
v3.78:
0. Fixed bug of gabarit assigner
1. Fixed bug for connect 2 edges
2. Removed through edge connection
3. For Subobjects 3: If no Bridge occurs then there will be a Cap operation
4. Fixed bug in create line between knots of shapes

0. Исправлена ошибка применителя габаритов
1. Исправлена ошибка соединения двух рёбер
2. Убрано сквозное соединение рёбер
3. Для подобъекта 3 Если не происходит Bridge то будет операция Cap
4. Исправлена ошибка в создании линии между узлами сплайна
v3.72:
redraw view after connect verts by edges
обновление экрана после соединения вершин рёбер
v3.71:
Fixed bug of bridge edges
Исправлена ошибка bridge рёбер
v3.7:
Fixed bug for connect verts by 2 edges
Исправлена ошибка соединения вершин по двум рёбрам
v3.69:
Fixed bug for connect verts by 2 edges
Исправлена ошибка соединения вершин по двум рёбрам
An added measure of distance between vertices if there is a failure of the operation Connect
Добавлено измерение дистанции между вершинами если происходит провал операции Connect
v3.67:
Fixed bug for create polygon by 2 Edge-vectors
Исправлена ошибка создания полигона парой рёбер-векторов
v3.66:
Fixed bug for connect 2 edges with a common vertex
Исправлена ошибка соединения двух рёбер с общей вершиной
v3.65:
Fixed bug for connect verts by 2 edge
Исправлена ошибка соединения вершин по двум рёбрам
v3.63:
Improved connect knots in splines.
Added connection of vertices from the edges.
Removed Distance connect edges.
Added create polygon by 2 Edge-vectors
Fixed bugs for Edit_Poly
Fixed bug for connect two edges

Улучшено соединение узлов сплайнов.
Добавлено соединения вершин от рёбер.
Убран Distance connect рёбер.
Добавлено создание полигона от двух рёбер-векторов
Исправлены ошибки для Edit_Poly
Исправлена обшибка коннекта пары рёбер

v3.56:
Select spline afrer connect knots.
Выделяется сплайн после коннекта вершин.

v3.55:
Fixed bug connect knots of splines. If Command Panel will pulled from 3dsmax, tool will continue work withuot bugs.
Исправлена ошибка соединения узлов сплайнов. Если Коммандная панель будет вытащена из макса, инструмент продолжит работать без оши.

v3.54: Fixed coflict between DistanceConnect and Bridge edges
v3.53: Fixed DistanceConnect, Fixed bug of Connect Edges
v3.035: Fixed bugs Divide Edge on EditPoly Modifier
v3.03: Fixed bugs of Target Weld on EditPoly Modifier
v3.02: Fixed bugs of cut Through Edge
v3.0: Fixed bugs of create spline between two knots
v2.9: Fixed bugs of cut Through edges (by vertices and by center edges)
v2.8: Added Gabarit Assigner
v2.4: Fixed bugs of connect 2 knots of shape with modifiers
v2.3: Fixed bugs of bridge 2 polygons
v2.2: If selected one Vertex then enable Target Weld

Thanx Soboleony for decoration of brief icons-functions

AttachmentSize
uniconnector_v1.0.ms4.54 KB
uniconnector_v2.2.ms6.87 KB
uniconnector_v2.3.ms6.86 KB
uniconnector_v2.4.ms6.9 KB
uniconnector_v2.8.ms7.29 KB
uniconnector_v2.9.ms8.57 KB
uniconnector_v3.0.ms8.51 KB
uniconnector_v3.02.ms8.57 KB
uniconnector_v3.03.ms8.65 KB
uniconnector_v3.035.ms9.18 KB
uniconnector_v3.53.ms10.08 KB
uniconnector_v3.54.ms10.1 KB
uniconnector_v3.55.ms10.4 KB
uniconnector_v3.56.ms10.41 KB
uniconnector_v3.75.ms12.43 KB
uniconnector_v3.79.ms12.61 KB
uniconnector_v3.8.ms13.64 KB
uniconnector_v3.81.ms14.09 KB
uniconnector_v3.82.ms14.16 KB
uniconnector_v3.83.ms14.11 KB
uniconnector_v3.84.ms14.16 KB
uniconnector_v3.84.1.ms14.2 KB
uniconnector_v3.85.ms14.21 KB
uniconnector_v3.85.1ms.ms13.95 KB
uniconnector_v3.86.ms14.32 KB
uniconnector_v3.87.ms14.32 KB
uniconnector_v3.89.ms15.13 KB
uniconnector_v3.91.ms15.35 KB
uniconnector_v3.94.ms16.46 KB
uniconnector_v3.95.ms16.51 KB
uniconnector_v3.97.ms16.54 KB
uniconnector_v3.98.ms16.54 KB
uniconnector_v4.1.ms19.86 KB
uniconnector_v4.22.ms21.72 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
comrade1280's picture

3.82 update

Thank you man, youre the BEST!!!
Этот апдейт практически мне жизнь спас - Спасибищще!!!

comrade1280's picture

Edge connect error

Hi Nik. I got this edge connect error as well. It was all ok from the start, but became permanent recently.

Here is the text from Listener:

-- Error occurred in anonymous codeblock; filename: C:\Users\teddy\AppData\Local\Autodesk\3dsMax\2017 - 64bit\ENU\usermacros\Niklit Scripts-UniConnector.mcr; position: 10896; line: 349

-- MAXScript MacroScript Error Exception:

-- Type error: if-test requires BooleanClass, got: undefined-- Error occurred in anonymous codeblock; filename: C:\Users\teddy\AppData\Local\Autodesk\3dsMax\2017 - 64bit\ENU\usermacros\Niklit Scripts-UniConnector.mcr; position: 10896; line: 349

-- MAXScript MacroScript Error Exception:

-- Type error: if-test requires BooleanClass, got: undefined

-- MAXScript callstack:

--thread data: threadID:13328

--------------------------------------------------------

--[stack level: 0]

--In so2_operation_fn(); filename: C:\Users\teddy\AppData\Local\Autodesk\3dsMax\2017 - 64bit\ENU\usermacros\Niklit Scripts-UniConnector.mcr; position: 10897; line: 349

--member of: codeblock macroScript: Niklit Scripts_UniConnector

--Parameters:

--fco: Editable Poly

--Locals:

--fco: Editable Poly

--FlowConnectSwitcher: undefined

--Externals:

--owner: <CodeBlock:Niklit Scripts_UniConnector>

--EdgeConnect_ThroughE_fn: EdgeConnect_ThroughE_fn()

--DivideEdg_fn: DivideEdg_fn()

--BridgeEdge_fn: BridgeEdge_fn()

--conn2Edg_fn: conn2Edg_fn()

--Es_: Global:Es_ : #{107, 111, 113, 173, 178, 287, 307, 309, 315, 319}

--FaceBy2EdgVectors: FaceBy2EdgVectors()

--EdgConnect_fn: EdgConnect_fn()

--ConnectVertByEdges_fn: ConnectVertByEdges_fn()

--Niklit Scripts_UniConnector: <CodeBlock:Niklit Scripts_UniConnector>

--------------------------------------------------------

--[stack level: 1]

--called from codeblock macroScript: Niklit Scripts_UniConnector; filename: C:\Users\teddy\AppData\Local\Autodesk\3dsMax\2017 - 64bit\ENU\usermacros\Niklit Scripts-UniConnector.mcr; position: 13444; line: 402

--Locals:

--DrawLineBetweenTwoPoints_fn: DrawLineBetweenTwoPoints_fn()

--TriFace_fn: TriFace_fn()

--so1_operation_fn: so1_operation_fn()

--EdgeConnect_ThroughE_fn: EdgeConnect_ThroughE_fn()

--WeldThreshold_fn: WeldThreshold_fn()

--BridgeEdge_fn: BridgeEdge_fn()

--DivideEdg_fn: DivideEdg_fn()

--so2_operation_fn: so2_operation_fn()

--FixResetObj_fn: undefined

--BridgeBorder_fn: BridgeBorder_fn()

--conn2Edg_fn: conn2Edg_fn()

--VertConnect_ThroughE_fn: VertConnect_ThroughE_fn()

--VertConn_fn: VertConn_fn()

--so4_operation_fn: so4_operation_fn()

--universal: (polyFns)

--FilterOpenVert_fn: FilterOpenVert_fn()

--PostWeld_fn: PostWeld_fn()

--selected_arr: #(#(265, 268, 271, 274, 440, 443, 451, 454, 796, 799, 851, 854, 857, 860, 868, 871, 881, 884, 893, 896))

--tryInit: tryInit()

--GabaritAssigner_fn: GabaritAssigner_fn()

--polyMODFns: StructDef:polyMODFns

--MultiAttach_Spl_fn: MultiAttach_Spl_fn()

--ShapeConn_fn: ShapeConn_fn()

--BridgePolygon_fn: BridgePolygon_fn()

--FaceBy2EdgVectors: FaceBy2EdgVectors()

--polyFns: StructDef:polyFns

--AddModiferSuit_fn: AddModiferSuit_fn()

--ViewDirection_Z_fn: ViewDirection_Z_fn()

--EdgConnect_fn: EdgConnect_fn()

--ConnectVertByEdges_fn: ConnectVertByEdges_fn()

--vSETi_sel_fn: vSETi_sel_fn()

--null: undefined

--BridgeKnots_fn: BridgeKnots_fn()

--eSETi_sel_fn: eSETi_sel_fn()

--Externals:

--subObjectLevel: SystemGlobal:subObjectLevel : 2

--gco: Global:gco : Editable Poly

--num_CurO: Global:num_CurO : 1

--Es_: Global:Es_ : #{107, 111, 113, 173, 178, 287, 307, 309, 315, 319}

--------------------------------------------------------

--[stack level: 2]

--called from top-level

-- Error occurred in anonymous codeblock; filename: C:\Users\teddy\AppData\Local\Autodesk\3dsMax\2017 - 64bit\ENU\usermacros\Niklit Scripts-UniConnector.mcr; position: 11495; line: 363

-- MAXScript MacroScript Error Exception:

-- Unknown property: "numberSet" in undefined

-- MAXScript callstack:

--thread data: threadID:13328

--------------------------------------------------------

Nik's picture

.

This error appears all the time? Or sometimes?
Due to the complexity of the combination of many functions of the script, sometimes conflicts are possible. Sometimes it helps to reset the transformation of the object. And also, will help stack the error from the maxscript listener (invoked via the button F11)
Эта ошибка появляется постоянно? Или иногда?
По причине сложности сочетания множества функций скрипта, возможны иногда конфликты. Иногда помогает сброс трансформации объекта. И ещё, поможет стек ошибки из maxscriptlistner (вызывается через кнопку F11)

TitusLVR's picture

Error occurred in anonymous codeblock; 3dsmax 2017

Hi Nik, i got this on edge connect.

but if i put this into line 367:
if FlowConnectSwitcher == true then macros.run "PolyTools" "FlowConnect" else EdgConnect_fn fco -- Edge Connect

it works fine.

Nik's picture

fixed

.

tahir1983's picture

spline connect issue

vertex knots after connect operation lost their bezier features ...handles dont work ...as if their are in corner mode

Nik's picture

.

The script is not intended to replace the bridge. It works like a stripped-down way-and it is intended.
Скрипт не предназначен заменить bridge. Уж как урезанно он работает - так и задумано.

niney's picture

Отлично! Спасибо, что поделились.

Спасибо, что поделились сценарием UniConnector, он чувствует себя действительно хорошо, особенно команда «мостик», потому что нет диалогового окна для использования. Однако все его функции сосредоточены на одной ключевой позиции. Это легко заставить «мостик» потерпеть неудачу. Поэтому я хочу отделить часть команды «Bridge» внутри, но я не понимаю сценарий, так что вы можете написать скрипт «Bridge»? Большое спасибо!
[email protected]

Nik's picture

.

это известная проблема самого maxscript, которой быть не должно.
Я пробовал это исправить, но не получилось.

this is a known problem of maxscript, which should not be.
Not always.
I tried to fix it, but failed.

Custom's picture

Scale EqualMaker fault

Does not work with flat editpolys in top view.
First object became empty editpoly with nothing inside (no verts etc).

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.