Snapping Toolbar

free scripts, plugins, models, textures
User avatar
trueBlue
Captain
Posts: 5214
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: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

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: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

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: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

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: 5214
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 46 times
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

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: 5214
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
Post Reply