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
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