Snapping Toolbar

free scripts, plugins, models, textures
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Snapping Toolbar

Post by clintonman »

wideStyleToolbar.jpg
wideStyleToolbar.jpg (31.28 KiB) Viewed 4677 times
New snapping scripts based around new picking widgets.
Face to Face - is updated from the standalone Face to face snapping script. This uses a new painting style selection widget, has button highlighting and a custom cursor. The old object vertex snapping scripts have been separated out into individual buttons for an easier user experience and also has custom enhancements. The Axis to PE button calls the point edit widget shortcuts of the Unofficial Update for snapping the axis to point edit selections.

New plugin version for Clintons3dPlugin.rsx v.1638423 is required. It contains the new paint select widgets.

http://clintons3d.com/plugins/truespace ... pping.html
Last edited by clintonman on 24 Oct 2020, 17:33, edited 1 time in total.
Clinton Reese

http://clintons3d.com
User avatar
the_ant
Chief Petty Officer
Posts: 155
Joined: 02 Jun 2009, 09:26
Type the number ten into the box: 0
Location: Perugia - Italy

Re: Snapping Toolbar

Post by the_ant »

:worship: :worship: That's what i'm waiting for the WorkSpace... :worship: :worship:
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Snapping Toolbar

Post by trueBlue »

I agree, these are some great tools for SURE!
Thank you Clinton! :worship:

Is it possible to do a Point Edit Selection to Object Face using your PickFaceWidget2 widget?
Or maybe an option in the PE 2 Point?
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: Snapping Toolbar

Post by clintonman »

trueBlue found a bug in the joint to points snapping. Fixed in this release.
Also fixed axis to point edit snapping, which would error if no point edit elements were selected.

installer uses new toolbar reset list provided by trueBlue.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Snapping Toolbar

Post by trueBlue »

Can you give an example on using the Joint to Object and why you would want to move a Joint to an Object?
I know how it works, just do not understand it's use.
TIA
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: Snapping Toolbar

Post by clintonman »

trueBlue wrote: 29 Oct 2020, 10:24 Can you give an example on using the Joint to Object and why you would want to move a Joint to an Object?
I know how it works, just do not understand it's use.
TIA
Here's one application, centering on wheels and steering wheel of a car using the old object vertex snap script.

http://clintons3d.com/truespace/unreal3 ... _page2.htm
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Snapping Toolbar

Post by trueBlue »

clintonman wrote: 29 Oct 2020, 14:45
trueBlue wrote: 29 Oct 2020, 10:24 Can you give an example on using the Joint to Object and why you would want to move a Joint to an Object?
I know how it works, just do not understand it's use.
TIA
Here's one application, centering on wheels and steering wheel of a car using the old object vertex snap script.

http://clintons3d.com/truespace/unreal3 ... _page2.htm
Thank you!
That is one huge project!
Never seen those pages before.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: Snapping Toolbar

Post by clintonman »

Update january 2021

updated to work with the new nurbs tools
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Snapping Toolbar

Post by trueBlue »

Face to Face snapping is not working for me with NURBS patches & Curves and or 3D Objects to NURBS patches & Curves
After performing the snap, which does not work, the NURBS's LODMesh is selected
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: Snapping Toolbar

Post by clintonman »

trueBlue wrote: 05 Jan 2021, 15:16 Face to Face snapping is not working for me with NURBS patches & Curves and or 3D Objects to NURBS patches & Curves
After performing the snap, which does not work, the NURBS's LODMesh is selected
I see the problem. The nurbs adjustment is only happening if the copy option is selected. The UU version should have the same problem since this latest update is just a copy of the quick snapping installs from a couple of weeks ago.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Snapping Toolbar

Post by trueBlue »

Yep, Copy works.
If possible, it would be great if you could remove the LE2Data cons

Code: Select all

	var currentNode = params.ConValue('currentNode');
	var selCount = Node.SelectedCount();

	if(selCount == 0) return;

	for(var i=0;i<selCount;i++) {
		var currentNode = Node.Selected(i);

		for(var j=0;j<12;j++)
			Node.ConRemove(currentNode, "LE2Data");

		var k = 1;
		while(Node.ConExists(currentNode, "LE2Data, " + k)) {
			Node.ConRemove(currentNode, "LE2Data, " + k);
			k++;
			//check for skipped number
			if(!Node.ConExists(currentNode, "LE2Data, " + k))
				k++;
		}

	}
Remove LE2Data.png
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: Snapping Toolbar

Post by clintonman »

Face to Face snapping for NURBS is fixed. Thanks.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: Snapping Toolbar

Post by clintonman »

trueBlue wrote: 05 Jan 2021, 16:45 Yep, Copy works.
If possible, it would be great if you could remove the LE2Data cons
...
As requested, Added LE arrange code to the copied nodes.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: Snapping Toolbar

Post by clintonman »

Update August 19 2021

made the installer version up to date with the Unofficial Update version of the scripts

uses fewer undos
updated the icon image
status message compatible

also added 2 requirements:
Widget Scripts and Status Message scripts are required
Status Message is already included in the Unofficial Updates

http://clintons3d.com/plugins/truespace ... getscripts

http://clintons3d.com/plugins/truespace ... tusmessage

http://clintons3d.com/plugins/truespace ... pping.html
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Snapping Toolbar

Post by trueBlue »

There is an issue with the Snapping toolbars and widgets!
If you start one of the Snapping tools, and you use any other trueSpace tool including other Snapping tools
Snapping widget BUG.png
I finally figured out how to check the state of all of these Snapping tools and close them

Code: Select all

	if(Node.Exists('/Widgets/Active Widgets Layer2/Active Widget/TrianglePickCursor') || Node.Exists('/Widgets/Active Widgets Layer2/Active Widget/PointPickCursor') || Node.Exists("/Widgets/Edit/Default context/Select/ObjectSelectCursor") && Node.Exists('Scripts/CustomCommands/SnappingScripts/toolbarScripts/resetState')) {
	ScriptObject.Execute('Scripts/CustomCommands/SnappingScripts/toolbarScripts/resetState')
	}
Do you think you can update these scripts to check if any of these tools are in use first?
Edit: I have fixed all of the Snapping scripts by adding a check to these scripts:

Code: Select all

"/Scripts/CustomCommands/SnappingScripts/facetoface/save obj ref"
"/Scripts/CustomCommands/SnappingScripts/pointsToPoints/start"
"/Scripts/CustomCommands/SnappingScripts/objectToObject/start/start2"
"/Scripts/CustomCommands/SnappingScripts/objectToPoints/start"
"/Scripts/CustomCommands/SnappingScripts/pivotToObject/start/start2"
"/Scripts/CustomCommands/SnappingScripts/pivotToPoints/start/start2"
"/Scripts/CustomCommands/SnappingScripts/pivotToPE/start"
"/Scripts/CustomCommands/SnappingScripts/peToObject/start"
"/Scripts/CustomCommands/SnappingScripts/peToPoints/start"
"/Scripts/CustomCommands/SnappingScripts/jointToObject/start"
"/Scripts/CustomCommands/SnappingScripts/jointToPoints/start"
Let me know if you think there needs to be additional code
It seems to work for me in all cases
Attachments
SnappingScripts.RsObj
(693.92 KiB) Downloaded 142 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: Snapping Toolbar

Post by clintonman »

trueBlue wrote: 24 Jul 2023, 13:17 There is an issue with the Snapping toolbars and widgets!
If you start one of the Snapping tools, and you use any other trueSpace tool including other Snapping tools
Snapping widget BUG.png

I finally figured out how to check the state of all of these Snapping tools and close them

Code: Select all

	if(Node.Exists('/Widgets/Active Widgets Layer2/Active Widget/TrianglePickCursor') || Node.Exists('/Widgets/Active Widgets Layer2/Active Widget/PointPickCursor') || Node.Exists("/Widgets/Edit/Default context/Select/ObjectSelectCursor") && Node.Exists('Scripts/CustomCommands/SnappingScripts/toolbarScripts/resetState')) {
	ScriptObject.Execute('Scripts/CustomCommands/SnappingScripts/toolbarScripts/resetState')
	}
Do you think you can update these scripts to check if any of these tools are in use first?
Edit: I have fixed all of the Snapping scripts by adding a check to these scripts:

Code: Select all

"/Scripts/CustomCommands/SnappingScripts/facetoface/save obj ref"
"/Scripts/CustomCommands/SnappingScripts/pointsToPoints/start"
"/Scripts/CustomCommands/SnappingScripts/objectToObject/start/start2"
"/Scripts/CustomCommands/SnappingScripts/objectToPoints/start"
"/Scripts/CustomCommands/SnappingScripts/pivotToObject/start/start2"
"/Scripts/CustomCommands/SnappingScripts/pivotToPoints/start/start2"
"/Scripts/CustomCommands/SnappingScripts/pivotToPE/start"
"/Scripts/CustomCommands/SnappingScripts/peToObject/start"
"/Scripts/CustomCommands/SnappingScripts/peToPoints/start"
"/Scripts/CustomCommands/SnappingScripts/jointToObject/start"
"/Scripts/CustomCommands/SnappingScripts/jointToPoints/start"
Let me know if you think there needs to be additional code
It seems to work for me in all cases
Looks good to me.
The vertex paint panel "start painting"also needs your fix.
and the mesh origin panel "set snap point widget" button.
Also the dimensions panel "linear" and "angle" buttons.
and the nurbs draw curve tool
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Snapping Toolbar

Post by trueBlue »

clintonman wrote: 24 Jul 2023, 21:29
trueBlue wrote: 24 Jul 2023, 13:17 There is an issue with the Snapping toolbars and widgets!
If you start one of the Snapping tools, and you use any other trueSpace tool including other Snapping tools
Snapping widget BUG.png

I finally figured out how to check the state of all of these Snapping tools and close them

Code: Select all

	if(Node.Exists('/Widgets/Active Widgets Layer2/Active Widget/TrianglePickCursor') || Node.Exists('/Widgets/Active Widgets Layer2/Active Widget/PointPickCursor') || Node.Exists("/Widgets/Edit/Default context/Select/ObjectSelectCursor") && Node.Exists('Scripts/CustomCommands/SnappingScripts/toolbarScripts/resetState')) {
	ScriptObject.Execute('Scripts/CustomCommands/SnappingScripts/toolbarScripts/resetState')
	}
Do you think you can update these scripts to check if any of these tools are in use first?
Edit: I have fixed all of the Snapping scripts by adding a check to these scripts:

Code: Select all

"/Scripts/CustomCommands/SnappingScripts/facetoface/save obj ref"
"/Scripts/CustomCommands/SnappingScripts/pointsToPoints/start"
"/Scripts/CustomCommands/SnappingScripts/objectToObject/start/start2"
"/Scripts/CustomCommands/SnappingScripts/objectToPoints/start"
"/Scripts/CustomCommands/SnappingScripts/pivotToObject/start/start2"
"/Scripts/CustomCommands/SnappingScripts/pivotToPoints/start/start2"
"/Scripts/CustomCommands/SnappingScripts/pivotToPE/start"
"/Scripts/CustomCommands/SnappingScripts/peToObject/start"
"/Scripts/CustomCommands/SnappingScripts/peToPoints/start"
"/Scripts/CustomCommands/SnappingScripts/jointToObject/start"
"/Scripts/CustomCommands/SnappingScripts/jointToPoints/start"
Let me know if you think there needs to be additional code
It seems to work for me in all cases
Looks good to me.
The vertex paint panel "start painting"also needs your fix.
and the mesh origin panel "set snap point widget" button.
Also the dimensions panel "linear" and "angle" buttons.
and the nurbs draw curve tool
Added to your list and several other scripts including the Global Function Set
function OpenFloatingPanel()
This covers a lot of ground in the UU9
Also, the Popups/OpenToolbars script

Return to “Repositorium”